Skip to content

anticore-contracts/tree-tab

Repository files navigation

@anticore-contracts/tree-tab

An anticore contract to switch the tabs.

Install

npm i @anticore-contracts/tree-tab

Reminder

The tree contracts should be added lastly, to improve the performances.

Exports

on

import '@anticore-contracts/tree-tab/on.js'

when

import '@anticore-contracts/tree-tab/when.js'

Lifecycle

  • Matches .anticore .tab
  • Searches the related a[role="tab"][href] for the response url providing that tab
  • Searches the closest ancestor containing the previous tab
  • Replaces the previous tab by the new one

License

MIT

About

An anticore contract to switch the tabs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published