I have following two lines of code in template:
<lightning-button icon-name="utility:download" onclick={handleExportAction} alternative-text="Export Data"></lightning-button>
<lightning-combobox name="sortOrder" value={value} options={options} onchange={handleChange} style="width: 200px;margin-left:20px" ></lightning-combobox>
And two functions in Js File:
handleChange(event) {
const select = event.detail.value;
}
handleExportAction(event) {
const select = event.detail.value;
}
I want value of combobox in handleExportAction function. How i can achieve this Please suggest me i am new lwc.Thanks