Unofficial javascript extension to the awesome Bulma CSS framework.
onLoaded
callback that can be defined within the window.bulmaOptions
object. This is called once the library has been loaded and the DOMContentLoaded
event has been fired.parseDocument
method will now check the given context against the internal pluginsBulma.getGlobalConfig(key: string, default: mixed)
method to the core. This allows easy access to properties within the window.bulmaOptions
object and accepts a default as it's second parameter, this is null
by default.This release comes with a lot of internal changes in preparation for future improvements and features. It's advised that your project is heavily tested before launching it to production. You can find more details on the internal changes with this update in the new (and first!) BulmaJS blog post.
getFilename
method to the file plugin.setActive
method to the tabs plugin. This allows for programatically changing the active tab.enableHideOnScroll
and disableHideOnScroll
enableSticky
and disableSticky
.Bulma('.navbar').data('navbar')
will return the navbar plugin instance associated with the element.bodyUrl
option.config
and implementing a ConfigBag
helper class.Bulma(selector)
and then call the relevant plugin. The core will then automatically pss the selector element as the root, or create an empty div as the root if nothing is provided.npm run production
script failingBackported from master
#88 Ensure the keyup event handler is removed then a Modal is destroyed. Thanks to @luksurious Pull Request.bulmaOptions
object.traverseDOM
method now accepts an optional parameter specifying an HTMLElement to use as the scope when parsing the document.destroyOnConfirm
and destroyOnCancel
options on the alert plugin have been moved to the buttons object and renamed to destroy
.closeOnConfirm
and closeOnCancel
options on the alert plugin have been moved to the buttons object and renamed to close
.onConfirm
property on the alert object has been moved to the confirm
object and renamed to onClick
.onCancel
property on the alert object has been moved to the cancel
object and renamed to onClick
.type
attribute has been renamed to style
. This value is changing the 'style' of the modal, and so this better reflects the option.escape
key.is-clipped
class is applied to the body
element.findElement
helper method to the BulmaJS core. This method will allow plugins to easily normalise an arugment that needs to be either an HTMLElement or a query selector string.closeButton
event is now correctly removed when destroying a modal.tabs-content
element.The reason for this being a large version jump is due to the complete overhaul of the documentation. While this doesn't change the functionality of the code, I feel like this is a large enough change to the project to warrant more than a 'patch' version bump.