A Lasso method that returns an HTML select menu of all known time zones, grouped into US common, continents, regions, UTC, and manual offsets.
Lasso
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tz_select_demo - initial project commit Dec 28, 2014
LICENSE Initial commit Dec 28, 2014
README.rst synch with article Dec 28, 2014
contributing.md - initial project commit Dec 28, 2014
tz_select.lasso - initial project commit Dec 28, 2014

README.rst

tz_select - Display an HTML select menu of time zones with Lasso

Read the article tz_select - Display an HTML select menu of time zones with Lasso.

Description

[tz_select] returns an HTML select menu of all known time zones, grouped into US common, continents, regions, UTC, and manual offsets.

It is used in the demos for tz_convert and countdown.

Demo

Demo.

Usage

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.

Example

<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.

More Information