Asides JS
You can get a hold of the Aside
component and control it with JavaScript.
Tracking with methods
You can overwrite the methods onopen
, onopened
,
onclose
and onclosed
to do something whenever the aside changes
state.
If you return false
in methods onopen
and onclose
,
the aside will respect that.
Tracking with events
You can also monitor the asides with DOM event listeners.
The events "ts-open"
and "ts-close"
can be blocked with
e.preventDefault()
to prevent the aside from changing state.
If you find a bug or need a feature…