vladotesanovic / ngSemantic

Angular 2 building blocks :package: based on Semantic UI
https://ng-semantic.herokuapp.com/
MIT License
973 stars 148 forks source link

sm-select onOpen/onShow event #169

Open mkndn opened 7 years ago

mkndn commented 7 years ago

I would like to add options to the sm-select dropdown based on the current row data inside a template.

Something like this...

<template let-data="rowData" let-i="rowIndex" pTemplate="body">
 <sm-select 
    placeholder="attributes" 
    [control]="attributeMaster"
    (onChange)="updateModel($event);"
        (onOpen/onShow)="loadData(data);"
    class="fluid">
    <option *ngFor="let item of selectAttributes" [value]="item.value">
    <span [innerHTML]="item.modal.displayName"></span>
</sm-select>
</template>

Please provider onOpen/onShow events for sm-select

mkndn commented 7 years ago

Click event works with this control. It would be really helpful if the documentation is updated to include this event.