Search found 3 matches

by elpepefontana
Sun Apr 21, 2019 1:15 am
Forum: Components
Topic: how to use data-on-item-select
Replies: 5
Views: 701

Re: how to use data-on-item-select

Can't make it work....
It's a dinamic generated select, but all attributes are ok.
Will it be a difference if the select content is generated dinamically?
I'm doing its like this:
loop ------

var select = $('#slt_' + n).data('select');
select.data(out)

----- loop

The values Show OK.
by elpepefontana
Sat Apr 20, 2019 11:08 pm
Forum: Components
Topic: how to use data-on-item-select
Replies: 5
Views: 701

Re: how to use data-on-item-select

I'm using it with a "multiple" select.
this is the code:

<select id="slt_3" name="slt_3" class="" data-role="select" multiple data-cls-option="fg-gray" data-on-change="setLevelSelect(3)" data-on-item-deselect="alert('try');">
</select>
by elpepefontana
Sat Apr 20, 2019 9:37 pm
Forum: Components
Topic: how to use data-on-item-select
Replies: 5
Views: 701

how to use data-on-item-select

Im trying to add behavior to a data-role="select", but i cant make the event data-on-item-deselect to run. <select data-role="select" data-on-item-deselect="alert('try');"> ........ </select> I have tried to put the events in <option>, not working either. I can use the "data-on-change" event ok, but...