APIs

Show:

Mixin for Controller handling flexberry-file actions.

Methods

actions.flexberryFileViewImageAction

(
  • selectedFileOptions
)
public

Handles flexberry-file viewImageAction: creates modal dialog with selected file preview.

Parameters:

  • selectedFileOptions Object

    Information about selected file.

    • [fileSrc] String optional

      File as base64string image data or as URL (to be setted as img tag's 'src' property).

    • [fileName] String optional

      File name to be setted as modal dialog caption.

actions.routeWillTransition

() public

Handles corresponding route's willTransition action. It sends message about transition to modal dialog's controller.

Properties

flexberryFileModalController

Controller

Controller for modal dialog content.

Default: Injected flexberry-file-view-dialog controller.

flexberryFileModalTemplateName

String

Modal dialog content template's name.

Default: 'flexberry-file-view-dialog'