Mix this class in to a dijit.form._FormSelectWidget in order to provide support for "selectable" multiforms. The widget is pointed to a dijit.layout.StackContainer and will handle displaying and submitting the values of only the appropriate pane.
The options for this widget will be automatically set - based on the panes that are in the stack container. The "title" attribute of the pane will be used for the display of the option. The "id" attribute of the pane will be used as the value of the option. In order to avoid running into unique ID constraint issues, a stackPrefix mechanism is provided.
See the dojox/form/_SelectStackMixin reference documentation for more information.
The id of the stack that this widget is supposed to control
A prefix to remove from our stack pane ids when setting our options. This exists so that we won't run into unique ID constraints. For example, if stackPrefix is set to "foo_", and there are three panes in our stack with ids of "foo_a", "foo_b", and "foo_c", then the values of the options created for the stack controller widget will be "a", "b", and "c". This allows you to have multiple select stack widgets with the same values - without having to have the panes require the same ids.
Parameter | Type | Description |
---|---|---|
pane | dijit/_Widget | |
value | String |
Called when form select widget's value has changed
Parameter | Type | Description |
---|---|---|
val | String |
Gets the option value given a pane ID
Parameter | Type | Description |
---|---|---|
id | String |
Gets the pane ID given an option value
Parameter | Type | Description |
---|---|---|
oVal | String |
called when a pane is either shown or hidden (so that we can toggle the widgets on it)
Parameter | Type | Description |
---|---|---|
pane | dijit/_Widget | |
shown | Boolean |
Parameter | Type | Description |
---|---|---|
name | String | Object | |
value | Object |
Optional
|
Called when the stack container adds a new pane
Parameter | Type | Description |
---|---|---|
pane | dijit/_Widget | |
insertIndex | Integer |
Optional
|
Called when the stack container removes a pane
Parameter | Type | Description |
---|---|---|
pane | dijit/_Widget |
Called when the stack container selects a new pane
Parameter | Type | Description |
---|---|---|
pane | dijit/_Widget |
Called when the stack container is started up
Parameter | Type | Description |
---|---|---|
info | Object |