-
Notifications
You must be signed in to change notification settings - Fork 28
Editors
In order to enable editing of Slick.Grid cells, first configure the grid itself to be editable, then configure the desired columns, setting "editable" to true and assigning an editor constructor.
Slickback.TextCellEditor is based on SlickEditor.TextCellEditor and represents a simple text input editor which can be used to edit a field of a Backbone.Model. If a formatter is specified for a column, the formatted value will be edited. If the formatter defines an unformat function, this will be used to clean the edited value before assigning it to the model.
Slickback.IntegerCellEditor is based on SlickEditor.IntegerCellEditor and represents a simple text input editor which can be used to edit an integer field of a Backbone.Model.
Slickback.NumberCellEditor is a simple text input editor which can be used to edit a numeric field of a Backbone.Model, applying a given decimal precision. Works with Slickback.NumberFormatter to support entry of numbers with thousands separator.
Slickback.DropdownCellEditor uses select controls to enable the choice of a value from a configured list of options. Works with Slickback.ChoiceFormatter to format the selected value for display.
All of the Slickback editors include Slickback.EditorMixin, which can be used to develop additional editors.