You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to create an easy and simple Javascript API there needs be a unified naming convention among the official plugins. Some kind of interface to follow.
Some ideas for these interface 'rules' could be:
All plugins will have a static create method, this is used by the Bulma.create method and if not required can simply return false
All plugins will have a static parse method, this is used by the BulmaJS core when parsing the HTML DOM and if no data API is provided can simply return false
All plugins will have a static rootClass method, this is used by the BulmaJS core when parsing the HTML DOM and is used to identify the primary class the plugin is responsible for. E.g. notification
All plugins will have a parent method/option, this is the HTML element the plugin is being placed into. A notification may have a div as it's parent whereas a modal may use the body element
All plugins will provide a static defaultOptions object that will be responsible for holding the default options for the plugin. This will be required for an update to the core that will merge the provided options, either via JS or data attributes, with the default options
The text was updated successfully, but these errors were encountered:
* Update build deps
* Create an abstract plugin class closes#39
* Update the navbar plugin to use the base plugin
* Update the accordion plugin to use the abstract plugin class
* Adjust order of options
* Update the calendar plugin to use the new plugin interface
* Update the dropdown plugin to use the plugin interface
* Update the file plugin to use the plugin interface
* Move static methods to the top of the file for consistency
* Update the dismissableComponent, message and notification to use the plugin interface.
* Update the modal plugin to use the updated plugin interface
* Update the tabs plugin to use the new plugin interface
* Rename the dom parsing method, and fix a bug introduced with the priority feature
In order to create an easy and simple Javascript API there needs be a unified naming convention among the official plugins. Some kind of interface to follow.
Some ideas for these interface 'rules' could be:
create
method, this is used by theBulma.create
method and if not required can simply return falseparse
method, this is used by the BulmaJS core when parsing the HTML DOM and if no data API is provided can simply return falserootClass
method, this is used by the BulmaJS core when parsing the HTML DOM and is used to identify the primary class the plugin is responsible for. E.g.notification
parent
method/option, this is the HTML element the plugin is being placed into. Anotification
may have adiv
as it's parent whereas amodal
may use thebody
elementdefaultOptions
object that will be responsible for holding the default options for the plugin. This will be required for an update to the core that will merge the provided options, either via JS or data attributes, with the default optionsThe text was updated successfully, but these errors were encountered: