Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default factory(function Tabs({ middleware: { icache } }) {
const activeIndex = icache.get('active') || 0;
return w(
TabController,
{
alignButtons: Align.top,
activeIndex: activeIndex,
onRequestTabChange: (index: number) => {
icache.set('active', index);
}
},
[
w(
Tab,
{
key: 'button-tab',
label: 'Basic Form Widgets'
},
[w(BasicFormTab, {})]
),
w(
Tab,
export default factory(function ButtonAlignment({ middleware: { icache } }) {
const activeIndex = icache.getOrSet('active', 0);
const alignButtons = icache.getOrSet('align', Align.top);
return (
<div>
<select> {
icache.set('align', value);
}}
/>
</select></div>
export default factory(function ButtonAlignment({ middleware: { icache } }) {
const activeIndex = icache.getOrSet('active', 0);
const alignButtons = icache.getOrSet('align', Align.top);
return (
<div>
<select> {
icache.set('align', value);
}}
/>
{
icache.set('active', index);
}}
>
</select></div>