tmplits-tabs 0.1.0
Install from the command line:
Learn more about npm packages
$ npm install @loupeteam/tmplits-tabs@0.1.0
Install via package.json:
"@loupeteam/tmplits-tabs": "0.1.0"
About this version
This is a tab control for tmplits. It has selectable tabs and a content area that is shown when the tab is selected.
The lui-tab-control is a web component. The properties are:
- value: The index of the selected tab. Starts at 0.
- A series of templates that are the tabs. The title attribute is the text of the tab. The content of the template is the content of the tab
If tabs are not active, they are completely removed from the DOM. This means that the process variables used in the tab can be disabled when the tab is not active.
It can be used directly in HTML or in a tmplit template.
<lui-tab-control value="1">
<template title="Page1">
<h1>Page 1</h1>
</template>
<template title="Page2">
<h1>Page 2</h1>
</template>
</lui-tab-control>
Details
- tmplits-tabs
-
loupeteam
- over 1 year ago
- MIT
Assets
- tmplits-tabs-0.1.0.tgz
Download activity
- Total downloads 39
- Last 30 days 0
- Last week 0
- Today 0