InactiveColumn
A column that displays (and allows user to update) the task's inactive field.
This column uses a Checkbox as its editor, and it is not intended to be changed.
Fields
Fields belong to a Model class and define the Model data structure-
This is a read-only field provided in server synchronization packets to specify which position the node takes in the parent's ordered children array. This index is set on load and gets updated on reordering nodes in tree. Sorting and filtering have no effect on it.
-
This is a read-only field provided in server synchronization packets to specify which record id is the parent of the record.
-
This is a read-only field provided in server synchronization packets to specify which position the node takes in the parent's children array. This index is set on load and gets updated automatically after row reordering, sorting, etc. To save the order, need to persist the field on the server and when data is fetched to be loaded, need to sort by this field.
-
Deprecated:
This field has been deprecated. Please read the guide to find out if your app needs to use the new isFullyLoaded field.
This field is added to the class at runtime when the Store is configured with lazyLoad. The number specified should reflect the total amount of children of a parent node, including nested descendants.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Mode to use when measuring the contents of this column in calls to resizeToFitContent. Available modes are:
- 'exact' - Most precise, renders and measures all cells (Default, slowest)
- 'textContent' - Renders all cells but only measures the one with the longest
textContent - 'value' - Renders and measures only the cell with the longest data (Fastest)
- 'none'/falsy - Resize to fit content not allowed, a call does nothing
Has a corresponding runtime fitMode property.
-
Column width as a flex weight. All columns with flex specified divide the available space (after subtracting fixed widths) between them according to the flex value. Columns that have
flex : 2will be twice as wide as those withflex : 1(and so on)Has a corresponding runtime flex property.
-
Column maximal width. If value is Number, then maximal width is in pixels
Has a corresponding runtime maxWidth property.
-
The text to show in the column header. You can display text vertically by setting the headerWritingMode property.
Has a corresponding runtime text property.
-
Column width. If value is Number then width is in pixels
Has a corresponding runtime width property.
-
The
aria-labelto use for this Column`s header elementHas a corresponding runtime ariaLabel property.
-
The
aria-labelto use for cells in this ColumnHas a corresponding runtime cellAriaLabel property.
-
The
aria-labelused for the default checkbox widget in this column’s cells.Has a corresponding runtime checkAriaLabel property.
-
trueto show a checkbox in the column header to be able to select/deselect all rowsHas a corresponding runtime showCheckAll property.
-
trueto display a SlideToggle instead of a Checkbox -
Set to
trueto have the cell editor for this column inherit formula providers from the Grid's configured formulaProviders.Has a corresponding runtime formula property.
-
Set to
'end'or'start'to pin the column to the respective side of the grid when PinColumns feature is enabled.Has a corresponding runtime pinned property.
-
When a column is pinned and it does not have a
widthspecified,pinnedWidthwill be used instead.Has a corresponding runtime pinnedWidth property.
-
Set this to
trueto not allow any type of editing in this column.Has a corresponding runtime readOnly property.
-
Internal listeners, that cannot be removed by the user.
-
Used by the Export feature. Set to
falseto omit a column from an exported datasetHas a corresponding runtime exportable property.
-
Column type which will be used by TableExporter. See list of available types in TableExporter docs. Returns undefined by default, which means column type should be read from the record field.
Has a corresponding runtime exportedType property.
-
Flag to enable vue component rendering
Has a corresponding runtime vue property.
-
A config object used to configure an Editor which contains this Column's input field if CellEdit feature is enabled.
Has a corresponding runtime cellEditor property.
-
The collapsed state of this column, only applicable for parent columns
Has a corresponding runtime collapsed property.
-
If
true, this column will show a collapse/expand icon in its header, only applicable for parent columnsHas a corresponding runtime collapsible property.
-
Set to
falseto prevent this column header from being draggedHas a corresponding runtime draggable property.
-
Set to
falseto prevent grouping by this columnHas a corresponding runtime groupable property.
-
Allow column visibility to be toggled through UI
Has a corresponding runtime hideable property.
-
How to handle a request to complete a cell edit in this column if the field is invalid. There are three choices:
blockThe default. The edit is not exited, the field remains focused.allowAllow the edit to be completed.revertThe field value is reverted and the edit is completed.
Has a corresponding runtime invalidAction property.
-
Set to
falseto prevent the column from being drag-resized when the ColumnResize plugin is enabled.Has a corresponding runtime resizable property.
-
Setting this option means that pressing the Escape key after editing the field will revert the field to the value it had when the edit began. If the value is not changed from when the edit started, the input field's clearable behaviour will be activated. Finally, the edit will be canceled.
Has a corresponding runtime revertOnEscape property.
-
Setting this flag to
truewill prevent dropping child columns into a group columnHas a corresponding runtime sealed property.
-
Allow searching in the column (respected by QuickFind and Search features)
Has a corresponding runtime searchable property.
-
Text align. Accepts
'left'/'center'/'right'or direction neutral'start'/'end'Has a corresponding runtime align property.
-
Convenient way of putting a column in the "locked" region. Same effect as specifying region: 'locked'. If you have defined your own regions (using subGridConfigs) you should use region instead of this one.
Has a corresponding runtime locked property.
-
The minimum column width. If value is a
Number, then the width is in pixelsHas a corresponding runtime minWidth property.
-
Set to
falseto prevent showing a context menu on the cell elements in this columnHas a corresponding runtime enableCellContextMenu property.
-
false to prevent showing a context menu on the column header element
Has a corresponding runtime enableHeaderContextMenu property.
-
Show column picker for the column
Has a corresponding runtime showColumnPicker property.
-
Set to
trueto automatically call DomHelper.sync for html returned from a renderer. Should in most cases be more performant than replacing entire innerHTML of cell and also allows CSS transitions to work. Has no effect unless htmlEncode is disabled. Returned html must contain a single root element (that can have multiple children). See PercentColumn for example usage.Has a corresponding runtime autoSyncHtml property.
-
An optional query selector to select a sub element within the cell being edited to align a cell editor's
Xposition andwidthto.Has a corresponding runtime editTargetSelector property.
-
Determines which type of filtering to use for the column. Usually determined by the column type used, but may be overridden by setting this field.
Has a corresponding runtime filterType property.
-
By default, any rendered column cell content is HTML-encoded. Set this flag to
falsedisable this and allow rendering html elementsHas a corresponding runtime htmlEncode property.
-
By default, the header text is HTML-encoded. Set this flag to
falsedisable this and allow html elements in the column headerHas a corresponding runtime htmlEncodeHeaderText property.
-
Set to
trueto have the CellEdit feature update the record being edited live upon field edit instead of when editing is finished by using Tab or EnterHas a corresponding runtime instantUpdate property.
-
Set to
falseto disable localization of this object. -
Column settings at different responsive levels, see responsive demo under examples/
Has a corresponding runtime responsiveLevels property.
-
Column config to apply to normal config if viewed on a touch device
Has a corresponding runtime touchConfig property.
-
When using the tree feature, exactly one column should specify { tree: true }
Has a corresponding runtime tree property.
-
Child columns. To create grouped headers, specify an array of column configs as children of a parent column.
-
CSS class added to each cell in this column
Has a corresponding runtime cellCls property.
-
CSS class name to add to checkbox
Has a corresponding runtime checkCls property.
-
CSS class added to the header of this column
Has a corresponding runtime cls property.
-
Icon to display in header. Specifying an icon will render a
<i>element with the icon as value for the class attributeHas a corresponding runtime icon property.
-
A tooltip string to show when hovering the column header, or a config object which can reconfigure the shared tooltip by setting boolean, numeric and string config values.
Has a corresponding runtime tooltip property.
-
Summary configs, use if you need multiple summaries per column. Replaces sum and summaryRenderer configs.
Has a corresponding runtime summaries property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of Events class, or subclass thereof.
-
Identifies an object as an instance of InactiveColumn class, or subclass thereof.
-
Identifies an object as an instance of Localizable class, or subclass thereof.
-
Identifies an object as an instance of ModelLink class, or subclass thereof.
-
Identifies an object as an instance of ModelStm class, or subclass thereof.
-
Identifies an object as an instance of TreeNode class, or subclass thereof.
-
A class property getter for the default values of internal properties for this class.
-
An array containing all the defined fields for this Model class. This will include all superclass's defined fields.
-
An object containing all the defined fields for this Model class. This will include all superclass's defined fields through its prototype chain. So be aware that
Object.keysandObject.entrieswill only access this class's defined fields. -
The data source for the id field which provides the ID of instances of this Model.
-
Mode to use when measuring the contents of this column in calls to resizeToFitContent. Available modes are:
- 'exact' - Most precise, renders and measures all cells (Default, slowest)
- 'textContent' - Renders all cells but only measures the one with the longest
textContent - 'value' - Renders and measures only the cell with the longest data (Fastest)
- 'none'/falsy - Resize to fit content not allowed, a call does nothing
Has a corresponding fitMode config.
-
Column width as a flex weight. All columns with flex specified divide the available space (after subtracting fixed widths) between them according to the flex value. Columns that have
flex : 2will be twice as wide as those withflex : 1(and so on)Has a corresponding flex config.
-
Column maximal width. If value is Number, then maximal width is in pixels
Has a corresponding maxWidth config.
-
The text to show in the column header. You can display text vertically by setting the headerWritingMode property.
Has a corresponding text config.
-
Column width. If value is Number then width is in pixels
Has a corresponding width config.
-
The
aria-labelto use for this Column`s header elementHas a corresponding ariaLabel config.
-
The
aria-labelto use for cells in this ColumnHas a corresponding cellAriaLabel config.
-
The
aria-labelused for the default checkbox widget in this column’s cells.Has a corresponding checkAriaLabel config.
-
An empty array that can be used as a default value.
-
An empty object that can be used as a default value.
-
trueto show a checkbox in the column header to be able to select/deselect all rowsHas a corresponding showCheckAll config.
-
Identifies an object as an instance of CheckColumn class, or subclass thereof.
-
Identifies an object as an instance of Column class, or subclass thereof.
-
Identifies an object as an instance of InactiveColumn class, or subclass thereof.
-
Identifies an object as an instance of Model class, or subclass thereof.
-
Identifies an object as an instance of WidgetColumn class, or subclass thereof.
-
Index among all flattened columns
-
A config object specifying the editor to use to edit this column.
-
Default settings for the column, applied in constructor. None by default, override in subclass.
-
The Field to use as editor for this column
Has a corresponding editor config.
-
Set to
trueto have the cell editor for this column inherit formula providers from the Grid's configured formulaProviders.Has a corresponding formula config.
-
Get the Grid instance to which this column belongs
-
Returns header text based on htmlEncodeHeaderText config value.
-
An object which contains a map of the widgets contained in this column header keyed by their ref.
-
Set to
'end'or'start'to pin the column to the respective side of the grid when PinColumns feature is enabled.Has a corresponding pinned config.
-
When a column is pinned and it does not have a
widthspecified,pinnedWidthwill be used instead.Has a corresponding pinnedWidth config.
-
Set this to
trueto not allow any type of editing in this column.Has a corresponding readOnly config.
-
Get the SubGrid to which this column belongs
-
Get the element for the SubGrid to which this column belongs
-
Set this column to be visible or not
-
For copied records, this property links to the original model instance from which it was copied.
-
True if this Model is currently batching its changes.
-
True if this models changes are currently being committed.
-
True if this model has any uncommitted changes.
-
Check if record has valid data. Default implementation returns true, override in your model to do actual validation.
-
Get a map of the modified fields in form of an object. The field´s dataSource is used as the property name in the returned object. The record's id is included unless its persist config is
false. -
Get a map of the modified data fields along with any alwaysWrite fields, in form of an object. The field´s dataSource is used as the property name in the returned object. Used internally by AjaxStore / CrudManager when sending updates.
-
Returns data for allpersistable fields in form of an object, using dataSource if present.
-
Returns a map of the modified persistable fields
-
Used by the Export feature. Set to
falseto omit a column from an exported datasetHas a corresponding exportable config.
-
Column type which will be used by TableExporter. See list of available types in TableExporter docs. Returns undefined by default, which means column type should be read from the record field.
Has a corresponding exportedType config.
-
Returns the string value for display purposes of an instance of this Model class. Needs to be overridden in subclasses.
-
When called on a group header row returns list of records in that group. Returns
undefinedotherwise. -
Returns true for a group header record
-
Gets the records internalId. It is assigned during creation, guaranteed to be globally unique among models.
-
Returns true if the record is new and has not been persisted (and received a proper id).
-
Flag to enable vue component rendering
Has a corresponding vue config.
-
A config object used to configure an Editor which contains this Column's input field if CellEdit feature is enabled.
Has a corresponding cellEditor config.
-
The collapsed state of this column, only applicable for parent columns
Has a corresponding collapsed config.
-
If
true, this column will show a collapse/expand icon in its header, only applicable for parent columnsHas a corresponding collapsible config.
-
Set to
falseto prevent this column header from being draggedHas a corresponding draggable config.
-
Set to
falseto prevent grouping by this columnHas a corresponding groupable config.
-
Allow column visibility to be toggled through UI
Has a corresponding hideable config.
-
How to handle a request to complete a cell edit in this column if the field is invalid. There are three choices:
blockThe default. The edit is not exited, the field remains focused.allowAllow the edit to be completed.revertThe field value is reverted and the edit is completed.
Has a corresponding invalidAction config.
-
Set to
falseto prevent the column from being drag-resized when the ColumnResize plugin is enabled.Has a corresponding resizable config.
-
Setting this option means that pressing the Escape key after editing the field will revert the field to the value it had when the edit began. If the value is not changed from when the edit started, the input field's clearable behaviour will be activated. Finally, the edit will be canceled.
Has a corresponding revertOnEscape config.
-
Setting this flag to
truewill prevent dropping child columns into a group columnHas a corresponding sealed config.
-
Allow searching in the column (respected by QuickFind and Search features)
Has a corresponding searchable config.
-
Text align. Accepts
'left'/'center'/'right'or direction neutral'start'/'end'Has a corresponding align config.
-
Convenient way of putting a column in the "locked" region. Same effect as specifying region: 'locked'. If you have defined your own regions (using subGridConfigs) you should use region instead of this one.
Has a corresponding locked config.
-
The minimum column width. If value is a
Number, then the width is in pixelsHas a corresponding minWidth config.
-
Returns a copy of the full configuration which was used to configure this object.
-
This property is set to
truebefore theconstructorreturns. -
This property is set to
trueon entry to the destroy method. It remains on the objects after returning fromdestroy(). If isDestroyed istrue, this property will also betrue, so there is no need to test for both (for example,comp.isDestroying || comp.isDestroyed). -
Are other records linked to this record?
-
Is this record linked to another record?
-
Get the original record this record is linked to.
-
Get links to this record.
-
Set to
falseto prevent showing a context menu on the cell elements in this columnHas a corresponding enableCellContextMenu config.
-
false to prevent showing a context menu on the column header element
Has a corresponding enableHeaderContextMenu config.
-
Show column picker for the column
Has a corresponding showColumnPicker config.
-
Set to
trueto automatically call DomHelper.sync for html returned from a renderer. Should in most cases be more performant than replacing entire innerHTML of cell and also allows CSS transitions to work. Has no effect unless htmlEncode is disabled. Returned html must contain a single root element (that can have multiple children). See PercentColumn for example usage.Has a corresponding autoSyncHtml config.
-
An optional query selector to select a sub element within the cell being edited to align a cell editor's
Xposition andwidthto.Has a corresponding editTargetSelector config.
-
Determines which type of filtering to use for the column. Usually determined by the column type used, but may be overridden by setting this field.
Has a corresponding filterType config.
-
Get the first store that this model is assigned to.
-
By default, any rendered column cell content is HTML-encoded. Set this flag to
falsedisable this and allow rendering html elementsHas a corresponding htmlEncode config.
-
By default, the header text is HTML-encoded. Set this flag to
falsedisable this and allow html elements in the column headerHas a corresponding htmlEncodeHeaderText config.
-
Set to
trueto have the CellEdit feature update the record being edited live upon field edit instead of when editing is finished by using Tab or EnterHas a corresponding instantUpdate config.
-
Get the global LocaleHelper
-
Get the global LocaleManager
-
Column settings at different responsive levels, see responsive demo under examples/
Has a corresponding responsiveLevels config.
-
Reference to STM manager, if used
-
Column config to apply to normal config if viewed on a touch device
Has a corresponding touchConfig config.
-
When using the tree feature, exactly one column should specify { tree: true }
Has a corresponding tree config.
-
This yields
trueif this record is eligible for syncing with the server. It can yieldfalseif the record is in the middle of a batched update, or if it is a tentative record yet to be confirmed as a new addition. -
Returns true if this record is not part of any store.
-
Retrieve all children, excluding filtered out nodes (by traversing sub nodes)
-
Retrieve all children, including filtered out nodes (by traversing sub nodes)
-
Depth in the tree at which this node exists. First visual level of nodes are at level 0, their direct children at level 1 and so on.
-
Count all children (including sub-children) for a node (in its `firstStore´)
-
Get the first child of this node
-
Returns index path to this node. This is the index of each node in the node path starting from the topmost parent. (only relevant when its part of a tree store).
-
Is a leaf node in a tree structure?
-
Returns true for parent nodes with children loaded (there might still be no children)
-
Is a parent node in a tree structure?
-
Returns
trueif this node is the root of the tree -
Get the last child of this node
-
Get the next sibling of this node
-
This is a read-only property providing access to the parent node.
-
Get the previous sibling of this node
-
Returns count of all preceding sibling nodes (including their children).
-
Array of tree nodes without any filter applied. On first filter, will take order from sorted
children, but is not thereafter kept in sorted order, so order should not be relied upon. -
Count visible (expanded) children (including sub-children) for a node (in its
firstStore) -
CSS class added to each cell in this column
Has a corresponding cellCls config.
-
CSS class name to add to checkbox
Has a corresponding checkCls config.
-
CSS class added to the header of this column
Has a corresponding cls config.
-
Icon to display in header. Specifying an icon will render a
<i>element with the icon as value for the class attributeHas a corresponding icon config.
-
A tooltip string to show when hovering the column header, or a config object which can reconfigure the shared tooltip by setting boolean, numeric and string config values.
Has a corresponding tooltip config.
-
Summary type (when using Summary feature). Valid types are:
'sum'- Sum of all values in the column'add'- Alias for sum'count'- Number of rows'countNotEmpty'- Number of rows containing a value'average'- Average of all values in the columncallbackFn- A custom function, used withstore.reduce. Its return value becomes the value of the accumulator parameter on the next invocation of callbackFn
Has a corresponding sum config.
-
Summary configs, use if you need multiple summaries per column. Replaces sum and summaryRenderer configs.
Has a corresponding summaries config.
-
Returns values of the persistable tree-defining fields: parentId, orderedParentIndex, and parentIndex or sparseIndex. parentIndex is omitted when sparseIndex is used.
Functions
Functions are methods available for calling on the class-
This optional class method is called when a class is mixed in using the mixin() method.
-
Registers this class type with its Factory
-
Makes getters and setters for related records. Populates a Model#relation array with the relations, to allow it to be modified later when assigning stores.
-
Apply state to column, used by State mixin
-
Get column state, used by State mixin
-
Hides this column.
-
Refreshes all the cells for this column
-
Rerender the header for this column
-
Shows this column.
-
cancelBatch( ) Model
Cancels current batch operation. Any changes during the batch are discarded.
-
Reverts changes in this back to their original values.
-
Internal function used to hook destroy() calls when using thisObj
-
Internal function used restore hooked destroy() calls when using thisObj
-
Auto detaches listeners registered from start, if set as detachable
-
Internal function used to run a callback function after an event is triggered
-
Removes all listeners registered to this object by the application.
-
Called from insertChild to notify StateTrackingManager about children insertion. Provides it with all necessary context information collected in beforeInsertChild required to undo/redo the action.
-
Called from removeChild to notify StateTrackingManager about children removing. Provides it with all necessary context information collected in beforeRemoveChild required to undo/redo the action.
-
Called during creation to also turn any children into Models joined to the same stores as this model
-
Initializes model relations. Called from store when adding a record.
-
Removes all records from the rootNode