Skip to main content

column.preference

ColumnPreferenceModel : d2/sdk/models/table/column.preference​

Fetch or save column configuration associated with a particular widget config.

Extends: Backbone.Model

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

ParamTypeDescription
attributesObject

column attributes

optionsObject

instance specific options

options.connectorConnector

AJAX transport. See Connector.

options.widgetTypestring

Type of the widget config

options.widgetNamestring

Name of the widget config.

[options.defaultType]string

Default column types.