Prevent reinitialize of pickers #2937
Unanswered
itajackass
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've some pickers inside on each row of a table (one per row)
Now each row can be (dinamically) modified, added or deleted.
So, for example, when I add a new row, then i call a function to initialize all date fields on each row:
Then problem is that if I add 5 rows... then "dateinput" is initialized 5 times (i find it based on shadow of the picker... every time bind_all_date_in_table() is called, the shadow became more dark....
I ask: is there a way to check if a dateinput is already initialized before calling new tempusDominus.TempusDominus ... ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions