API Docs for:
Show:

Y.DataTable.EditorOptions.text Class

Popup Cell Editor "text"

This View configuration is used to setup a basic textbox type popup cell editor.

Basic Usage
   // Column definition
   { key:'firstName', editor:"text"}

   // Column definition ... disabling inputKeys navigation and setting offsetXY
   { key:'firstName',
     editor:"text", editorConfig:{ inputKeys:false, offsetXY: [5,7] }
   }
Standard Configuration

This editor creates a simple INPUT[text] internally within the popup Editor View container positioned directly over the TD element.

The configuration {Object} for this cell editor View is predefined as;

   Y.DataTable.EditorOptions.text = {
       BaseViewClass:  Y.DataTable.BaseCellPopupEditor,
       name:           'text',
       templateObject: {
           // Template.Micro setup
           html: '<input type="text" title="inline cell editor" class="<%= this.classInput %>"  />'
       },
       inputKeys:      true,
       after:{
           editorShow : function(o){
               o.inputNode.focus();
           }
       }
   };

PLEASE NOTE: All other attributes from the BaseViewClass apply and can be included within the editorConfig object.

Item Index