inputlabel.js 625 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import Controller from '../../ui/controller.js';
  6. /**
  7. * The input label controller class.
  8. *
  9. * @memberOf ui.input
  10. * @extends ui.Controller
  11. */
  12. export default class InputLabel extends Controller {
  13. /**
  14. * Creates an instance of {@link ui.input.InputLabel} class.
  15. *
  16. * @param {ui.input.InputLabelModel} model Model of this label.
  17. * @param {ui.View} view View of this label.
  18. */
  19. constructor( model, view ) {
  20. super( model, view );
  21. view.model.bind( 'for', 'text' ).to( model );
  22. }
  23. }