Skip to content

stevepiercy/tz_select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Lasso method that returns an HTML select menu of all known time zones, grouped into US common, continents, regions, UTC, and manual offsets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages