oruga icon indicating copy to clipboard operation
oruga copied to clipboard

Can please add defineExpose for table and autocomplete

Open okrymus opened this issue 1 year ago • 2 comments

I cannot access the components methods/ variables from a parent.

For table, sometimes the sorting arrow not get updated if the sort changed by parent Can you add expose currentSortColumn and isAsc?

For autocomplete, sometimes i need to setSelected from parent. Can you also add expose setSelected method?

Thank you!

okrymus avatar Jan 30 '24 20:01 okrymus

Hey @okrymus, I will check which methods need to be exposed and which functionality can be triggered by props.

mlmoravek avatar Jan 31 '24 07:01 mlmoravek

@mlmoravek thank you!

okrymus avatar Jan 31 '24 14:01 okrymus

@okrymus I checked your request. If you have any problems with the table component not get updated, please open a detailed issue, this might be a bug.

If you wan't to update the selected value from autocomplete component, you can use a two-way binded v-model value.

mlmoravek avatar Mar 16 '24 16:03 mlmoravek