Class: CUI.ConfirmationChoice
Defined in: | elements/ConfirmationChoice/ConfirmationChoice.coffee |
Inherits: | CUI.ConfirmationDialog |
Overview
- coffeescript-ui - Coffeescript User Interface System (CUI)
- Copyright (c) 2013 - 2016 Programmfabrik GmbH
- MIT Licence
- https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org
Direct Known Subclasses
CUI.Alert CUI.Confirm CUI.Toaster
Variables Summary
- defaults =
-
{ ok: "Ok", cancel: "Cancel" }
- choiceOpts =
-
{ text: { mandatory: true, check: String }, onClick: { check: Function }, icon: { check: CUI.Icon }, choice: { check: String }, tooltip: { check: "PlainObject" }, cancel: { "default": false, check: Boolean }, primary: { mandatory: true, "default": false, check: Boolean }, disabled: { mandatory: true, "default": false, check: Boolean } }
Variable inherited from CUI.ConfirmationDialog
defaults knownPlacements uniqueId
Instance Method Summary
- # (void) initOpts()
- # (void) readOpts()
- # (void) init()
- # (void) __getResolveValue() Bound
- # (void) show()
- # (void) cancel(ev, ret)
- # (void) destroy()
- # (void) open() opens the dialog and returns a promise promise fails if the user cancels
Inherited Method Summary
Methods inherited from
CUI.ConfirmationDialog
#initOpts #setPane #readOpts #init #updateText #setText #getButtons #__addHeaderButton #__runOnAllButtons #disableAllButtons #enableAllButtons #isKeyboardCancellable #doCancel #focusOnShow #forceFocusOnShow #empty #append #replace #setContent #hide #getPane #destroy #setBackdropContent #getTemplate #getLayerRoot #getLayer #setVisible #__setElement #__getOriginalElement #autoSize #position #__removeDebugDivs #clearTimeout #showTimeout #hideTimeout #__updateLayerStackCounter #getElementOpenClass #show #focusOnHide #getElement #isShown #registerTemplate #getDOMElementClasses #registerDOMElement #getElementForLayer #unregisterDOMElement #__assertDOMElement #__assertTemplateElement #addClass #setAria #removeClass #hasClass #isDestroyed #prepend #text #get #getFlexHandle #getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOptsFromAttr #proxy .getOptKeys
Constructor Details
#
(void)
constructor(opts)
Instance Method Details
#
(void)
initOpts()
#
(void)
readOpts()
#
(void)
init()
#
(void)
__getResolveValue()
Bound
#
(void)
show()
#
(void)
cancel(ev, ret)
#
(void)
destroy()
#
(void)
open()
opens the dialog and returns a promise promise fails if the user cancels