Categories

mediagalleryUiMemoryusage()

Categories: UI

.mediagalleryUiMemoryusage( [ options ] )

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.mediagallery.ui.memoryusage

Description: Create a box that displays the current utilisation of the MediaGallery.

  • .mediagalleryUiMemoryusage( [ options ] )

    version added: 6.15.0

    options   A map of additional options pass to the method.

The .mediagalleryUiMemoryusage() method creates a box that displays the current utilisation of the MediaGallery.It shows how much memory is used / still free.

  • Apply .mediagalleryUiMemoryusage() widget to an element.

    HTML:
    <div id="memoryusage"></div>
    
    Code:
    de_epages("#memoryusage").mediagalleryUiMemoryusage({
      currentUsage: 48000
    });
    
    
    
  • currentUsage

    version added: 6.15.0

    A number containing the current usage in bytes.

    Default: 00

  • maxSize

    version added: 6.15.0

    A number containing the maximal usage in bytes.

    Default: 100000

  • updateUsage

    • .mediagalleryUiMemoryusage('updateUsage', value)

      version added: 6.15.0

    This method updates the memory utilisation to the given value.

  • destroy

    • .mediagalleryUiMemoryusage('destroy')

      version added: 6.15.0

    This method removes all classes and childs which were added to the element.