Equal icon indicating copy to clipboard operation
Equal copied to clipboard

Suggestion: add change event on components.

Open sagoncalves opened this issue 5 years ago • 3 comments

I think it would be nice to have that behaviour like with plain vue and almost all ui libraries, otherwise you got to watch your data to trigger functions.

Maybe there's already a way to achieve this?

Example:


<it-select @change="replot"  v-model="type" :options="optionsArray" />

Thanks.

sagoncalves avatar Mar 04 '21 19:03 sagoncalves

In progress

quatrochan avatar Mar 04 '21 19:03 quatrochan

Thank you very much! Its really the only downside that i can see on it. :)

sagoncalves avatar Mar 04 '21 19:03 sagoncalves

@sagoncalves Hi. This functional already exist.

  <it-select
    @update:model-value="handleChangeSelect"
    :model-value="selectValue"
    label-top="Label"
    :options="selectOptions"
  />
  handleChangeSelect(value) {
   // do something
    selectValue.value = value
   // do something
  }

Happy-Child avatar Mar 07 '21 13:03 Happy-Child