APIs

Show:

Controller for content of flexberry-file preview dialog.

Methods

actions.createdModalDialog

(
  • modalDialog
)
public

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 JQueryObject

    Created 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 JQuery

    Created modal window.

Properties

_openedModalDialog

JQuery

Current opened modal window.

Default: undefined

_openedModalDialog

JQueryObject private

Currently opened modal dialog DOM element.

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'

title

String

Modal dialog title.