Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

the feedback events have no parameters #133

Open
tstoev opened this issue Oct 27, 2019 · 3 comments
Open

the feedback events have no parameters #133

tstoev opened this issue Oct 27, 2019 · 3 comments

Comments

@tstoev
Copy link

tstoev commented Oct 27, 2019

it would be nice to bind the events handlers to the control instance.
Currently if I have more than one picker on the page, there is no way to find out which triggered the actual event(unless they are constructed separately).
Adding a .bind(this) before each call will solve that.

@ekhtiari
Copy link

ekhtiari commented Nov 1, 2019

you can set extra function for input and send your parameter to other function , save parameter in localstorage and use this storage in clockpicker event

<input type="text" class="form-control clockpicker" value="12:25" onclick="SetId(12)">

 function SetId(val) {
        window.localStorage.setItem('temp',val);
    }

 donetext: 'Done',
        afterHide: function () {
            var t=window.localStorage.getItem('temp');
            console.log(t);
        }

@ekhtiari
Copy link

ekhtiari commented Nov 1, 2019

better than you can use onchange event of inputbox and call your function and send any parameter that you need

@tstoev
Copy link
Author

tstoev commented Nov 1, 2019

sure, but that is a messy way to get the clock instance. Adding binding is a simple change, does not interfere with the interface that the control provides, and does not require inter-state cross-instance magic. I've actually edited the code for the system I am building, but need to go through the entire git cycle to submit it, and I simply don't have the time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants