Ext.data.JsonP.Backgrid_SelectCell({ "tagname": "class", "name": "Backgrid.SelectCell", "extends": "Backgrid.Cell", "mixins": [ ], "alternateClassNames": [ ], "aliases": { }, "singleton": false, "requires": [ ], "uses": [ ], "enum": null, "override": null, "inheritable": null, "inheritdoc": null, "meta": { }, "private": null, "id": "class-Backgrid.SelectCell", "members": { "cfg": [ ], "property": [ { "name": "className", "tagname": "property", "owner": "Backgrid.SelectCell", "meta": { }, "id": "property-className" }, { "name": "delimiter", "tagname": "property", "owner": "Backgrid.SelectCell", "meta": { }, "id": "property-delimiter" }, { "name": "editor", "tagname": "property", "owner": "Backgrid.SelectCell", "meta": { }, "id": "property-editor" }, { "name": "events", "tagname": "property", "owner": "Backgrid.Cell", "meta": { }, "id": "property-events" }, { "name": "formatter", "tagname": "property", "owner": "Backgrid.SelectCell", "meta": { }, "id": "property-formatter" }, { "name": "multiple", "tagname": "property", "owner": "Backgrid.SelectCell", "meta": { }, "id": "property-multiple" }, { "name": "optionValues", "tagname": "property", "owner": "Backgrid.SelectCell", "meta": { }, "id": "property-optionValues" }, { "name": "tagName", "tagname": "property", "owner": "Backgrid.Cell", "meta": { }, "id": "property-tagName" } ], "method": [ { "name": "enterEditMode", "tagname": "method", "owner": "Backgrid.Cell", "meta": { }, "id": "method-enterEditMode" }, { "name": "exitEditMode", "tagname": "method", "owner": "Backgrid.Cell", "meta": { }, "id": "method-exitEditMode" }, { "name": "initialize", "tagname": "method", "owner": "Backgrid.SelectCell", "meta": { }, "id": "method-initialize" }, { "name": "remove", "tagname": "method", "owner": "Backgrid.Cell", "meta": { "chainable": true }, "id": "method-remove" }, { "name": "render", "tagname": "method", "owner": "Backgrid.SelectCell", "meta": { "chainable": true }, "id": "method-render" }, { "name": "renderError", "tagname": "method", "owner": "Backgrid.Cell", "meta": { }, "id": "method-renderError" } ], "event": [ ], "css_var": [ ], "css_mixin": [ ] }, "linenr": 893, "files": [ { "filename": "cell.js", "href": null } ], "html_meta": { }, "statics": { "cfg": [ ], "property": [ ], "method": [ ], "event": [ ], "css_var": [ ], "css_mixin": [ ] }, "component": false, "superclasses": [ "Backbone.View", "Backgrid.Cell" ], "subclasses": [ ], "mixedInto": [ ], "parentMixins": [ ], "html": "
Hierarchy
Backbone.ViewBackgrid.CellBackgrid.SelectCell
SelectCell is also a different kind of cell in that upon going into edit mode\nthe cell renders a list of options to pick from, as opposed to an input box.
\n\nSelectCell cannot be referenced by its string name when used in a column\ndefinition because it requires an optionValues class attribute to be\ndefined. optionValues can either be a list of name-value pairs, to be\nrendered as options, or a list of object hashes which consist of a key name\nwhich is the option group name, and a key values which is a list of\nname-value pairs to be rendered as options under that option group.
In addition, optionValues can also be a parameter-less function that\nreturns one of the above. If the options are static, it is recommended the\nreturned values to be memoized. _.memoize() is a good function to help with\nthat.
During display mode, the default formatter will normalize the raw model value\nto an array of values whether the raw model value is a scalar or an\narray. Each value is compared with the optionValues values using\nEcmascript's implicit type conversion rules. When exiting edit mode, no type\nconversion is performed when saving into the model. This behavior is not\nalways desirable when the value type is anything other than string. To\ncontrol type conversion on the client-side, you should subclass SelectCell to\nprovide a custom formatter or provide the formatter to your column\ndefinition.
See:\n $.fn.val()
\nIf this column is editable, a new CellEditor instance is instantiated with\nits required parameters. An editor CSS class is added to the cell upon\nentering edit mode.
This method triggers a Backbone backgrid:edit event from the model when\nthe cell is entering edit mode and an editor instance has been constructed,\nbut before it is rendered and inserted into the DOM. The cell and the\nconstructed cell editor instance are sent as event parameters when this\nevent is triggered.
When this cell has finished switching to edit mode, a Backbone\nbackgrid:editing event is triggered from the model. The cell and the\nconstructed cell instance are also sent as parameters in the event.
When the model triggers a backgrid:error event, it means the editor is\nunable to convert the current user input to an apprpriate value for the\nmodel's column, and an error CSS class is added to the cell accordingly.
Removes the editor and re-render in display mode.
\nInitializer.
\nIf optionsValues is undefined.
Overrides: Backgrid.Cell.initialize
Renders the label using the raw value as key to look up from optionValues.
this
\nIf optionValues is malformed.
Overrides: Backgrid.Cell.render
Put an error CSS class on the table cell.