FLUID-5068: for textfieldSlider and related components, the range values should not be stored in the model

Metadata

Source
FLUID-5068
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2013-06-26T10:34:25.652-0400
Updated
2013-08-13T08:53:15.966-0400
Versions
N/A
Fixed Versions
  1. 1.5
Component
  1. UI Options

Description

The textfieldSlider takes in max and min as values of it's model, in addition to the actual model value. These are more options to the component and should be stored in a "range" object in the components options. This convention has also trickled upstream into the fluid.uiOptions.textSizer and fluid.uiOptions.lineSpacer components; which use textfieldSlider as a subcomponent. These will also need to be fixed.

e.g. before:

{
...
model: {
value: 1,
min: 0,
max: 100
...
}

e.g. after:

{
...
model: {
value: 1
},
range: {
min: 0,
max: 100
}
...
}

Comments