FlexberryFileViewDialogController Class
Controller for content of flexberry-file preview dialog.
Item Index
Properties
Methods
actions.createdModalDialog
-
modalDialog
Handles modal dialog creation. It saves reference to created dialog's DOM element to a controllers property (to make it possible to close it later).
Parameters:
-
modalDialog
JQueryObjectCreated modal dialog's DOM element.
actions.routeWillTransition
()
public
Handles corresponding route's willTransition action. It closes modal dialog if it is opened (if Ember uses hash location type, modal dialog won't be closed automatically).
closeModalDialog
()
Close current modal window if it exists.
createdModalDialog
-
modalDialog
Handles create modal window action. It saves created window to have opportunity to close it later.
Parameters:
-
modalDialog
JQueryCreated modal window.
Properties
_openedModalDialog
JQuery
Current opened modal window.
Default: undefined
imageSrc
String
File as base64string image data or as URL (to be setted as img tag's 'src' property).
Default: ''
sizeClass
String
Size of modal dialog. Possible variants: 'small', 'large', 'fullscreen'.
Default: 'small'