Categories

mediagalleryUiFilemanagerdialog()

Categories: UI

.mediagalleryUiFilemanagerdialog( [ options ] )

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.mediagallery.ui.filemanagerdialog

Description: Create a dialog that contains the file manager.

  • .mediagalleryUiFilemanagerdialog( [ options ] )

    version added: 6.15.0

    options   A map of additional options pass to the method.

The .mediagalleryUiFilemanagerdialog() widget creates a dialog that contains the new implemented file manager.

The widget opens on click at the given element the dialog with the file manager. You can pass two options. The first is the dialog option that defines the design and handling of the dialog. You can use all options the .epUiDialog() offers. The second option is called filemanager und defines the content of it. Here you can use all options the .mediagalleryUiFilemanager() offers.
  • Apply .mediagalleryUiFilemanagerdialog() widget to an element.

    HTML:
    <button id="filemanager">Select file</button>
    
    Code:
    de_epages("#filemanager").mediagalleryUiFilemanagerdialog({																	
      dialog:    {
        draggable:     true,
        modal:         false,
        buttons: {
          Close:{
            click: function(){ console.debug("do something")}
          }
        }
      },								
      filemanager: {
        selectable:    "image/",								
        currentFolder: "BackgroundImages"
      }
    });
    
    
    
  • dialog

    version added: 6.15.0

    Here you can define all options ep.ui.dialog can have.

  • filemanager

    version added: 6.15.0

    Here you can define all options de_epages.mediagallery.ui.filemanager can have.

    Default: MediaGallery

  • open

    • .mediagalleryUiFilemanagerdialog('open')

      version added: 6.15.0

    This method opens the dialog.

  • close

    • .mediagalleryUiFilemanagerdialog('close')

      version added: 6.15.0

    This method closes the dialog.

  • getSelectedElements

    • .mediagalleryUiFilemanagerdialog('getSelectedElements')

      version added: 6.15.0

    This method returns an array containing all selected files which are selectable.

  • getCurrentUsage

    • .mediagalleryUiFilemanagerdialog('getCurrentUsage')

      version added: 6.15.0

    This method returns the value of the current gallery usage.

  • resetFilemanager

    • .mediagalleryUiFilemanagerdialog('resetFilemanager')

      version added: 6.15.0

    This method destroys the file manager in the dialog.

  • destroy

    • .mediagalleryUiFilemanagerdialog('destroy')

      version added: 6.15.0

    This method destroys the widget.