Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize input value by value= #12

Open
p2pow350 opened this issue Apr 24, 2020 · 2 comments
Open

Initialize input value by value= #12

p2pow350 opened this issue Apr 24, 2020 · 2 comments

Comments

@p2pow350
Copy link

Hi Tartarus!
I found your plugin very easy to configure and read and effective! Thank you!

I would like to know if could be possible to set starting value with just using "input value=" syntax as I have a page with many time picker and I need to get data from a database.
In my opinion "set_values" is ok for few elements

Thank you
Max

@Tartarus762
Copy link
Owner

If it helps, you can provide a value for any number of inputs with set_values without altering any unspecified values.

For example, if you have 3 inputs, a,b,c, their values are 1,2,3, you can do set_values({"a": 4}) and now the values are 4,2,3.

@p2pow350
Copy link
Author

I have a grid with multiple items, like this https://ibb.co/N6nKyrv
Those inputs should track work time for each task, each day, so potentially i have many and many pickers.

All items are initialized by class, all of them are inputs like this:
<input class="duration-picker" type="number" value="">

Now, I found your function set_values, but do you think is possible to use std input "value" for initializing time ?

Thank you so much

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

No branches or pull requests

2 participants