FlexberryDialogComponent Class
Flexberry dialog component with Semantic UI modal style.
Item Index
Methods
- _actionHandlerIsDefined
- _addDynamicProperty
- _dynamicPropertiesDidChange
- _removeDynamicProperties
- _removeDynamicProperty
- _visibleDidChange
- attachEventHandler
- closeModalDialog
- createdModalDialog
- detachAllEventHandlers
- detachEventHandler
- send
- sendingActions.approve
- sendingActions.beforeHide
- sendingActions.beforeShow
- sendingActions.deny
- sendingActions.hide
- sendingActions.show
Properties
- _availableDomEvents
- _componentWrapperIsAvailable
- _dialog
- _dynamicActions
- _dynamicPropertiesMetadata
- _eventsMetadata
- _openedModalDialog
- _requiredActions
- allowMultiple
- allowMultiple
- approveButtonCaption
- caption
- classNames
- content
- contentClass
- denyButtonCaption
- duration
- duration
- dynamicActions
- dynamicProperties
- flexberryClassNames static
- isTagless
- offset
- visible
Methods
_actionHandlerIsDefined
-
options
Parameters:
Returns:
_addDynamicProperty
-
propertyName
Parameters:
-
propertyNameStringName of dynamic property that must be added.
_dynamicPropertiesDidChange
()
private
_removeDynamicProperties
()
private
_removeDynamicProperty
-
propertyName
Parameters:
-
propertyNameStringName of dynamic property that must be removed.
_visibleDidChange
()
private
Observes 'visible' property. Shows dialog if property is true, otherwise hides dialog.
attachEventHandler
-
options
Parameters:
-
optionsObjectMethod options.-
eventTargetObjectDOM-element (jQuery-object) for which event-handler must be attached.
-
eventNameStringEvent name.
-
eventHandlerFunctionEvent handler.
-
closeModalDialog
()
createdModalDialog
-
modalDialog
Parameters:
-
modalDialogJQueryCreated modal window.
detachAllEventHandlers
()
detachEventHandler
-
options
Parameters:
-
optionsObjectMethod options.-
eventTargetObjectDOM-element (jQuery-object) from which event-handler must be detached.
-
eventNameStringEvent name.
-
eventHandlerFunctionEvent handler.
-
send
-
actionName -
args
`
Parameters:
-
actionNameStringName of the action that must be triggered. -
argsArguments that must be passed to action.
Returns:
sendingActions.approve
()
Component's action invoking when dialog is approved.
sendingActions.beforeHide
()
Component's action invoking when dialog starts to hide.
sendingActions.beforeShow
()
Component's action invoking when dialog starts to show.
sendingActions.deny
()
Component's action invoking when dialog is denied.
sendingActions.hide
()
Component's action invoking when dialog is hidden.
sendingActions.show
()
Component's action invoking when dialog is shown.
Properties
_availableDomEvents
Object
private
_componentWrapperIsAvailable
Boolean
private
_dynamicActions
Object
private
_dynamicPropertiesMetadata
Object[]
private
Default: null
_eventsMetadata
Object[]
private
Default: null
_openedModalDialog
JQuery
Default: undefined
_requiredActions
String[]
Default: null
allowMultiple
Boolean
Flag: indicates whether multiple dialogs are allowed at the same time.
Default: false
allowMultiple
Boolean
Flag: indicates whether dialog is closable (can be closed on it's dimmer click).
Default: false
approveButtonCaption
String
Component's approve button caption.
Default: t('components.flexberry-dialog.approve-button.caption')
classNames
String[]
Component's wrapping
Any other CSS-classes can be added through component's 'class' property.
{{flexberry-dialog class="large" approve=(action "onDialogApprove")}}
Default: ['flexberry-dialog', 'ui', 'modal']
denyButtonCaption
String
Component's deny button caption.
Default: t('components.flexberry-dialog.deny-button.caption')
dynamicActions
DynamicActionObject[]
Default: null
dynamicProperties
Object
Default: null
flexberryClassNames
Object
static
Component's CSS-classes names. JSON-object containing string constants with CSS-classes names related to component's .hbs markup elements.
Sub-properties:
-
prefixStringComponent's CSS-class names prefix ('flexberry-dialog').
-
wrapperStringComponent's wrapping
CSS-class name ('flexberry-dialog').headerStringComponent's header block CSS-class name ('flexberry-dialog-header').
contentStringComponent's content block CSS-class name ('flexberry-dialog-content').
toolbarStringComponent's toolbar block CSS-class name ('flexberry-dialog-toolbar').
approveButtonStringComponent's approve button CSS-class name ('flexberry-dialog-approve-button').
cancelButtonStringComponent's cancel button CSS-class name ('flexberry-dialog-cancel-button').
closeButtonStringComponent's close button CSS-class name ('flexberry-dialog-close-button').
BooleanisTaglessFlag: indicates whether component is tagless or not (has empty [tagName](https://emberjs.com/api/ember/release/classes/Component#property_tagName) or not).
NumberoffsetComponent's vertical offset to allow for content outside of dialog, for example a close button, to be centered.
Default: 0
BooleanvisibleFlag: indicates whether dialog is visible or not. If true, then dialog will be shown, otherwise dialog will be closed.
Default: false
Flexberry Documentation