tz_select - Display an HTML select menu of time zones with Lasso
The project tz_select and its source files are hosted on GitHub.
[tz_select] returns an HTML select menu of all known time zones, grouped into US common, continents, regions, UTC, and manual offsets.
tz_select requires one parameter and a second parameter is optional.
-name is required and must be a string type. Its value must be the name of the select HTML menu.
-selected is optional but must be a string type. Its value should be the value of the selected time zone.
1 2 3 4
<div> <label>Timezone</label> [tz_select(-name='timezone', -selected=action_param('timezone'))] </div>
Output is a select HTML menu.
Installation and Requirements¶
The repository contains the tag [tz_select] in a file named tz_select.lasso and a directory tz_select_demo containing the demo. In this directory there is a web page named index.lasso containing the tz_select tag.
There are no additional requirements.
Did you like this article? Please send me a Gratipay, as little as 25¢ per week!
Updates, suggestions and comments regarding this article may be sent to Steve Piercy, [email protected] or comment using Disqus.