import { LightningElement, track } from 'lwc';
export default class VxSidebar extends LightningElement {
@track value = 'Commodity';
@track valueCheckBox = ['Manufacturer', 'Corrugator', 'Sheet plant', 'Large RSC', 'Triple wall', '4+ colors'];
@track optionsCheckBox = [
{label : 'Manufacturer', value : 'Manufacturer'},
{label : 'Corrugator', value : 'Corrugator'},
{label : 'Sheet plant', value : 'Sheet plant'},
{label : 'Large RSC', value : 'Large RSC'},
{label : 'Small RSC', value : 'Small RSC'},
{label : 'Displays/POP', value : 'Displays/POP'},
{label : 'Triple wall', value : 'Triple wall'},
{label : '4+ colors', value : '4+ colors'},
{label : 'Micro flute', value : 'Micro flute'},
{label : 'Speciality glue or die cut', value : 'Speciality glue or die cut'}
];
get options () {
return [
{label : 'Commodity', value : 'Commodity'},
{label : 'Flexible', value : 'Flexible'}
];
}
handleChange(e) {
this.value = e.detail.value;
if (e.detail.value === 'Commodity') {
this.optionsCheckBox = [
{label : 'Manufacturer', value : 'Manufacturer'},
{label : 'Corrugator', value : 'Corrugator'},
{label : 'Sheet plant', value : 'Sheet plant'},
{label : 'Large RSC', value : 'Large RSC'},
{label : 'Small RSC', value : 'Small RSC'},
{label : 'Displays/POP', value : 'Displays/POP'},
{label : 'Triple wall', value : 'Triple wall'},
{label : '4+ colors', value : '4+ colors'},
{label : 'Micro flute', value : 'Micro flute'},
{label : 'Speciality glue or die cut', value : 'Speciality glue or die cut'}
];
this.valueCheckBox = ['Manufacturer', 'Corrugator', 'Sheet plant', 'Large RSC', 'Triple wall', '4+ colors'];
}
else if (e.detail.value === 'Flexible') {
this.optionsCheckBox = [
{label : 'Printer/Converter (checkbox)', value : 'Printer/Converter (checkbox)'},
{label : 'Types of Materials (free text)', value : 'Types of Materials (free text)'},
{label : 'Styles of Materials (free text)', value : 'Styles of Materials (free text)'},
{label : '# of Layers (free text)', value : '# of Layers (free text)'},
{label : 'Ability to Perf (checkbox)', value : 'Ability to Perf (checkbox)'},
{label : 'Print Processes (free text)', value : 'Print Processes (free text)'},
{label : 'Surface Print/Reverse Print (free text)', value : 'Surface Print/Reverse Print (free text)'},
{label : '# of Colors (free text)', value : '# of Colors (free text)'},
{label : 'In-House Graphics/Plates (checkbox)', value : 'In-House Graphics/Plates (checkbox)'}
]
this.valueCheckBox = ['Printer/Converter (checkbox)', 'Types of Materials (free text)'];
}
}
}