Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Editors

teleological edited this page Sep 6, 2011 · 1 revision

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.

TextCellEditor

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.

IntegerCellEditor

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.

NumberCellEditor

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.

DropdownCellEditor

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.

EditorMixin

All of the Slickback editors include Slickback.EditorMixin, which can be used to develop additional editors.

Clone this wiki locally