Show:
  1. var CSS_FORM_CONTROL = A.getClassName('form', 'control'),
  2. CSS_CELLEDITOR_ELEMENT = A.getClassName('celleditor', 'element');
  3. /**
  4. * TextCellEditor class.
  5. *
  6. * @class A.TextCellEditor
  7. * @extends A.BaseCellEditor
  8. * @param {Object} config Object literal specifying widget configuration
  9. * properties.
  10. * @constructor
  11. */
  12. var TextCellEditor = A.Component.create({
  13. /**
  14. * Static property provides a string to identify the class.
  15. *
  16. * @property NAME
  17. * @type String
  18. * @static
  19. */
  20. NAME: 'textCellEditor',
  21. /**
  22. * Static property used to define which component it extends.
  23. *
  24. * @property EXTENDS
  25. * @type Object
  26. * @static
  27. */
  28. EXTENDS: A.BaseCellEditor,
  29. prototype: {
  30. ELEMENT_TEMPLATE: '<input autocomplete="off" class="' +
  31. [CSS_CELLEDITOR_ELEMENT, CSS_FORM_CONTROL].join(' ') + '" type="text" />'
  32. }
  33. });
  34. A.TextCellEditor = TextCellEditor;