column.preference
ColumnPreferenceModel : d2/sdk/models/table/column.preference
Fetch or save column configuration associated with a particular widget config.
Extends: Backbone.Model
- ColumnPreferenceModel :
d2/sdk/models/table/column.preference
- instance
- inner
columnPreferenceModel.columns : Backbone.Collection
Parsed column configuration such that each model in this collection represent a single column.
Kind: instance property of ColumnPreferenceModel
columnPreferenceModel.fetch() ⇒ jQuery.Promise
Fetch from server the column configuration of the widget identified by the set options
Kind: instance method of ColumnPreferenceModel
columnPreferenceModel.save() ⇒ jQuery.Promise
Save this column configuration to server
Kind: instance method of ColumnPreferenceModel
ColumnPreferenceModel~constructor(attributes, options)
Create a new instance.
Kind: inner method of ColumnPreferenceModel
Param | Type | Description |
---|---|---|
attributes | Object | column attributes |
options | Object | instance specific options |
options.connector | Connector | AJAX transport. See Connector. |
options.widgetType | string | Type of the widget config |
options.widgetName | string | Name of the widget config. |
[options.defaultType] | string | Default column types. |