Represents a banner.
Render the banner.
Open the banner.
Close the banner.
Build a full banner element. This is used when no banner or a partial banner exists in the DOM.
Build a close button element.
Get the data attributes from the bannerElement. If the banner is being set up declaratively, this method is used to extract the data attributes from the DOM.
Initialise banner components.
If using the Build Service, add
o-banner@^2.1.0 to your
script and link tags.
If running a Manual Build, run
bower install --save "o-banner@^2.1.0".
o-banner is maintained directly by the Origami team. If you have any questions about o-banner or Origami in general, we are happy to help. 😊