Class: DatepickerModel

Snippets.Datepicker DatepickerModel

DatepickerModel

new DatepickerModel(model)

modules/snippets/datepicker/model.js, line 16
Name Type Description
model object Model to be used in this view
Properties:
Name Type Description
preselectedValue Date Initial value.
startDate Date earliest selectable date
endDate Date latest selectable date

Extends

Methods

addValueModel(value, startDate, endDate){void}

modules/snippets/datepicker/model.js, line 46
Add Model to valuesCollection representing the choosen date
Name Type Description
value Date the preselectedValue Date
startDate Date earliest selectable date
endDate Date latest selectable date

inherited checkSnippetInfos(snippetInfos, name){void}

modules/snippets/model.js, line 40
Checks if info text is available and sets it
Name Type Description
snippetInfos object [description]
name string [description]

inherited deselectValueModels(){void}

modules/snippets/model.js, line 68
Deselects all value models in the values collection

inherited extentBaseModel(obj){object}

modules/snippets/model.js, line 79
Extent Object with new ValueModel
Name Type Description
obj object Object to be extended
Returns:
extended Object

getSelectedValues(){object}

modules/snippets/datepicker/model.js, line 80
Returns an object with the datepicker name and its date
Returns:
contains the selected values

inherited hasSelectedValues(){boolean}

modules/snippets/model.js, line 58
Returns true if any of the value models is selected

initialize(model){void}

modules/snippets/datepicker/model.js, line 25
Sets default values and listener
Name Type Description
model Backbone.Model Model attributes to be used in this view

inherited removeView(){void}

modules/snippets/model.js, line 50
Trigger removeView

inherited setAttr(value){void}

modules/snippets/model.js, line 116
Setter for attr
Name Type Description
value string attr

inherited setDisplayName(value){void}

modules/snippets/model.js, line 144
Setter for displayName
Name Type Description
value string displayName

inherited setId(value){void}

modules/snippets/model.js, line 98
Setter for id
Name Type Description
value string id

inherited setName(value){void}

modules/snippets/model.js, line 107
Setter for name
Name Type Description
value string name

inherited setPreselectedValues(value){void}

modules/snippets/model.js, line 126
Setter for preselectedValues
Name Type Description
value string preselectedValues

inherited setType(value){void}

modules/snippets/model.js, line 135
Setter for type
Name Type Description
value string type

inherited setValues(value){void}

modules/snippets/model.js, line 162
Setter for values
Name Type Description
value string values

inherited setValuesCollection(value){void}

modules/snippets/model.js, line 153
Setter for valuesCollection
Name Type Description
value string valuesCollection

inherited superInitialize(){void}

modules/snippets/model.js, line 26
Initialize after Child-Initialize

inherited triggerValuesChanged(model, value){void}

modules/snippets/model.js, line 89
Trigger valuesChanged to children
Name Type Description
model object Model to be transmitted
value string Value to be transmitted

updateValues(snippetValue){void}

modules/snippets/datepicker/model.js, line 62
Call the updateValueModel function trigger the valueChanged event on snippetCollection in queryModel
Name Type Description
snippetValue Date new selected date

updateValuesSilently(value){void}

modules/snippets/datepicker/model.js, line 71
Update the internal valuesCollection silently and triggers event to adjust the DOM element
Name Type Description
value Date new selected date