I have added the JQueryUI’s <link>'s and <script>'s into the document’s Head HTML. But I have no idea how to add an <input> tag. Taken from the site’s source:
I'm not really a fan of this idea. Personally, I'd probably make my own date picker before adding jQuery. That's a lot of weight. It certainly is a lot more work to make your own date picker though. Perhaps a "Vanilla JavaScript" solution is better. But... eh... that's not your question here.
(Although, the one you picked seems to require Bootstrap, so it might not work anyway.)
So, you'd just edit the "innerHTML" of an element and then add the code.
When you click an element, a circular icon (with a pencil) appears. You can click that to add your own HTML code. In the "Filters" example, the values from the "range" sliders determine the value for the filters.
I have been able to transpose the same configuration within my existing Hype file. Once set in the text box, I have another button on my “form” which I intend to use to gather all variables set and push it to a PHP file.
How I do programatically get the date (value) selected?
I have tried: alert(hypeDocument.getElementById('datepicker').innerText);
Returns a blank popup.
And also from the enclosing Rectangle (I have named “datePlayed1”): alert(hypeDocument.getElementById('datePlayed1').innerText);
Returns “Played”, which is the label before the text box.
Finally, adding the code below inside by button press function: window.datePlayed = $('.datepicker').datepicker('getDate'); alert(window.datePlayed);