Class ecm.widget.DropDownDialog
Extends
dijit.TooltipDialog.
Provides a widget that is used to display a drop-down list.
Defined in: <ecm\widget\DropDownDialog.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Field Summary
Field Attributes | Field Name and Description |
---|---|
The Apply button label.
|
|
Boolean indicating if the Cancel button should be hidden.
|
|
Boolean indicating if the OK button should be hidden.
|
|
The OK button label.
|
|
Boolean indicating if the Apply button should be hidden.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
focus()
|
|
Event fired when the Apply button is clicked.
|
|
Event fired when the Cancel button is clicked.
|
|
Event fired when the OK button is clicked.
|
|
onClose()
Called when the drop-down list closes.
|
|
onOpen()
Called when the drop-down list opens.
|
|
Resets the heights.
|
|
setAlignLeftOKButton(moveLeft)
Align the OK button to left.
|
|
setDisabledApplyButton(disabled)
Disables or enables the Apply button.
|
|
setDisabledOKButton(disabled)
Disables or enables the OK button.
|
|
setOKButtonLabel(label)
Sets the OK button label.
|
|
setShowApplyButton(show)
Shows or hides the Apply button.
|
|
setShowOKButton(show)
Shows or hides the OK button.
|
Field Detail
applyButtonLabel
The Apply button label.
hideCancelButton
Boolean indicating if the Cancel button should be hidden.
hideOKButton
Boolean indicating if the OK button should be hidden.
okButtonLabel
The OK button label.
showApplyButton
Boolean indicating if the Apply button should be hidden.
Method Detail
constructor()
focus()
onClickApply()
Event fired when the Apply button is clicked.
onClickCancel()
Event fired when the Cancel button is clicked.
onClickOK()
Event fired when the OK button is clicked.
onClose()
Called when the drop-down list closes.
onOpen()
Called when the drop-down list opens. Resizes the drop-down to fit the browser area.
postCreate()
scheduleResize()
Resets the heights.
setAlignLeftOKButton(moveLeft)
Align the OK button to left.
- Parameters:
- moveLeft
- A boolean value. If
true
, the OK button will be aligned to left. Otherwise the OK button will be aligned to right.
setDisabledApplyButton(disabled)
Disables or enables the Apply button.
- Parameters:
- disabled
- A boolean value. If
true
, the Apply button will be disabled. Otherwise the Apply button will be enabled.
setDisabledOKButton(disabled)
Disables or enables the OK button.
- Parameters:
- disabled
- A boolean value. If true, the OK button will be disabled. Otherwise the OK button will be enabled.
setOKButtonLabel(label)
Sets the OK button label.
- Parameters:
- label
- The string label for the OK button.
setShowApplyButton(show)
Shows or hides the Apply button.
- Parameters:
- show
- A boolean value. If
true
, the Apply button is displayed. Otherwise the Apply button is hidden.
setShowOKButton(show)
Shows or hides the OK button.
- Parameters:
- show
- A boolean value. If
true
, the Apply button is displayed. Otherwise the OK button is hidden.