From 5cbb1afad1aeedfa0e318b90c0e9c2adc10fd598 Mon Sep 17 00:00:00 2001 From: Yves Goergen Date: Fri, 10 Mar 2023 21:26:31 +0100 Subject: [PATCH] Added more deinit() plugin methods --- doc/changes.html | 4 ++++ doc/frontfire-core.html | 22 ++++++++++++++++++---- doc/frontfire-ui-colorpicker.html | 15 +++++++++++++++ doc/frontfire-ui-draggable.html | 6 +++--- doc/frontfire-ui-progressbar.html | 15 +++++++++++++++ doc/frontfire-ui-resizable.html | 6 +++--- doc/frontfire-ui-selectable.html | 10 ++++++++++ doc/frontfire-ui-sortable.html | 6 +++--- doc/frontfire-ui-tree.html | 10 ++++++++++ doc/frontfire-ui-wheelscrolling.html | 15 +++++++++++++++ src/js/frontfire-core.js | 10 +++++++++- src/js/plugins/colorpicker.js | 17 ++++++++++++++--- src/js/plugins/draggable.js | 7 ++++--- src/js/plugins/progressbar.js | 13 ++++++++++++- src/js/plugins/resizable.js | 7 ++++--- src/js/plugins/selectable.js | 1 + src/js/plugins/sortable.js | 15 ++++++++------- src/js/plugins/tree.js | 20 +++++++++++++++++--- src/js/plugins/wheelscrolling.js | 22 +++++++++++++++++++--- 19 files changed, 184 insertions(+), 37 deletions(-) diff --git a/doc/changes.html b/doc/changes.html index 5432251..b74fd05 100644 --- a/doc/changes.html +++ b/doc/changes.html @@ -22,6 +22,7 @@

Change log

+

Version 2.0.0-rc.1

Released: not yet

New features

@@ -33,6 +34,8 @@

New features

  • Added styling for the <mark> element
  • ToggleSwitch can be applied to an <input type="checkbox"> element, also automatically with the toggle-switch CSS class
  • Added ArrayList.selectManyRecursive method
  • +
  • Added Frontfire.deleteOptions method
  • +
  • Added deinit() methods for the ColorPicker, Progressbar, Tree and WheelScrolling plugin.
  • Breaking changes


    diff --git a/doc/frontfire-core.html b/doc/frontfire-core.html index 9830750..487a5b0 100644 --- a/doc/frontfire-core.html +++ b/doc/frontfire-core.html @@ -2707,6 +2707,20 @@

    deinit

    +
    +

    deleteOptions

    + +

    + Deletes the initialised plugin options from the element. + This method is used by deinit() methods of plugins. +

    +

    + See also: Frontfire.initOptions(), Frontfire.loadOptions() +

    +
    +

    frontfire

    @@ -2763,7 +2777,7 @@

    loadOptions

    Loads the initialised plugin options for additional plugin functions. - If the plugin options have been initialised for the element, undefined is returned. + If the plugin options have not been initialised for the element, undefined is returned. This method is used by plugin operations that work with a plugin instance after it has been created on an element. Any options, including references to internal functions, that were set in the plugin’s create function can be accessed with this method in the additional operation methods.

    @@ -2771,7 +2785,7 @@

    loadOptions

    See the registerPlugin() method for an example of this method.

    - See also: Frontfire.registerPlugin() + See also: Frontfire.registerPlugin(), Frontfire.initOptions(), Frontfire.deleteOptions()

    @@ -2901,7 +2915,7 @@

    registerPlugin

    }

    - See also: Frontfire.autostart() + See also: Frontfire.autostart(), Frontfire.initOptions(), Frontfire.loadOptions(), Frontfire.deleteOptions()

    diff --git a/doc/frontfire-ui-colorpicker.html b/doc/frontfire-ui-colorpicker.html index 4385a4d..784d457 100644 --- a/doc/frontfire-ui-colorpicker.html +++ b/doc/frontfire-ui-colorpicker.html @@ -135,6 +135,21 @@

    color

    +

    Plugin methods

    +

    + This plugin provides methods to control the view. +

    + +
    +

    deinit

    + +

    + Deinitializes the plugin and empties the elements. +

    +
    +

    Plugin events

    This plugin triggers events for the input field. diff --git a/doc/frontfire-ui-draggable.html b/doc/frontfire-ui-draggable.html index 9d2978c..39b020e 100644 --- a/doc/frontfire-ui-draggable.html +++ b/doc/frontfire-ui-draggable.html @@ -350,12 +350,12 @@

    Plugin methods

    -

    remove

    +

    deinit

    - Removes the draggable features from the elements. + Deinitializes the plugin and removes the draggable features from the elements.

    diff --git a/doc/frontfire-ui-progressbar.html b/doc/frontfire-ui-progressbar.html index ca41176..43a9b54 100644 --- a/doc/frontfire-ui-progressbar.html +++ b/doc/frontfire-ui-progressbar.html @@ -264,6 +264,21 @@

    valueSuffix

    +

    Plugin methods

    +

    + This plugin provides methods to control the progress bar. +

    + +
    +

    deinit

    + +

    + Deinitializes the plugin and removes the progress bar from the elements. +

    +
    +

    Plugin events

    This plugin triggers events for the progress bar. diff --git a/doc/frontfire-ui-resizable.html b/doc/frontfire-ui-resizable.html index ae256e5..744d2c0 100644 --- a/doc/frontfire-ui-resizable.html +++ b/doc/frontfire-ui-resizable.html @@ -325,12 +325,12 @@

    Plugin methods

    -

    remove

    +

    deinit

    - Removes the resizing features from the elements. + Deinitializes the plugin and removes the resizing features from the elements.

    diff --git a/doc/frontfire-ui-selectable.html b/doc/frontfire-ui-selectable.html index 0b70fe8..24ef754 100644 --- a/doc/frontfire-ui-selectable.html +++ b/doc/frontfire-ui-selectable.html @@ -624,6 +624,16 @@

    Plugin methods

    This plugin provides methods to control the selectable state.

    +
    +

    deinit

    + +

    + Deinitializes the plugin. +

    +
    +

    getSelection