Package Exports
- storm-attributelist
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (storm-attributelist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
#Storm Attributelist
Batch set/toggle DOM element attributes
##Usage var attributelist = require('storm-atributelist');
var el = document.querySelector('.off-canvas');
attributelist.set(el, { 'aria-hidden': true, 'aria-labelledby': 'hamburger' })
##API @name: set @params: DOM element, required, element to set attributes on Object, required, attribute keys and values
@name: toggle @params: DOM element, required, element to set attributes on String || Array, required, attribute or array of attributes to toggle boolean attribute