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:
-
propertyName
StringName of dynamic property that must be added.
_dynamicPropertiesDidChange
()
private
_removeDynamicProperties
()
private
_removeDynamicProperty
-
propertyName
Parameters:
-
propertyName
StringName of dynamic property that must be removed.
_visibleDidChange
()
private
Observes 'visible' property. Shows dialog if property is true, otherwise hides dialog.
attachEventHandler
-
options
Parameters:
-
options
ObjectMethod options.-
eventTarget
ObjectDOM-element (jQuery-object) for which event-handler must be attached.
-
eventName
StringEvent name.
-
eventHandler
FunctionEvent handler.
-
closeModalDialog
()
createdModalDialog
-
modalDialog
Parameters:
-
modalDialog
JQueryCreated modal window.
detachAllEventHandlers
()
detachEventHandler
-
options
Parameters:
-
options
ObjectMethod options.-
eventTarget
ObjectDOM-element (jQuery-object) from which event-handler must be detached.
-
eventName
StringEvent name.
-
eventHandler
FunctionEvent handler.
-
send
-
actionName
-
args
`
Parameters:
-
actionName
StringName of the action that must be triggered. -
args
Arguments 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:
-
prefix
StringComponent's CSS-class names prefix ('flexberry-dialog').
-
wrapper
StringComponent's wrapping
CSS-class name ('flexberry-dialog').header
StringComponent's header block CSS-class name ('flexberry-dialog-header').
content
StringComponent's content block CSS-class name ('flexberry-dialog-content').
toolbar
StringComponent's toolbar block CSS-class name ('flexberry-dialog-toolbar').
approveButton
StringComponent's approve button CSS-class name ('flexberry-dialog-approve-button').
cancelButton
StringComponent's cancel button CSS-class name ('flexberry-dialog-cancel-button').
closeButton
StringComponent's close button CSS-class name ('flexberry-dialog-close-button').
BooleanisTagless
Flag: indicates whether component is tagless or not (has empty [tagName](https://emberjs.com/api/ember/release/classes/Component#property_tagName) or not).
Numberoffset
Component's vertical offset to allow for content outside of dialog, for example a close button, to be centered.
Default: 0
Booleanvisible
Flag: indicates whether dialog is visible or not. If true, then dialog will be shown, otherwise dialog will be closed.
Default: false