Class: Sidebar

Sidebar

A SIDEBAR COMPONENT




DEMO

Constructor

Source:

Members

(static) observedAttributes

Set observable values here. When Changed, attributeChangedCallback is invoked
Source:

Methods

(static) test()

FOR TESTING PURPOSES
Source:

_fetchAttributes(lhsopt, rhsopt, offsetopt)

Component attributes are _fetched and defaults are set if undefined
Parameters:
Name Type Attributes Default Description
lhs string <optional>
col-md-3 class for left hand side
rhs string <optional>
col-md-9 class for right hand side
offset string <optional>
0 bottom margin for sidebar
Source:

_fetchElements()

Stores DOM elements of interest for future use
Source:

_finalize()

SAVE DATA FOR ANALYTICS
Source:

_onResize()

A sample callback usage function - see connectedCallback()
Source:

attributeChangedCallback()

Called with .setAttribute(...) function call
Source:

connectedCallback()

This function is called when this is attached to DOM
Source:

destroy()

Destroy the instance object and artifacts
Source:

disconnectedCallback()

Invoked When component is removed. Usually with a .remove() function call
Source: