Name
<fb:editor-time/>
Synopsis
<fb:editor-time/>
Produces three drop-down menus for the hour, minute, and a.m./p.m. of the day within an <fb:editor/> form.
FBML-Specific Attributes
Required
None.
Optional
label=[string] default: noneThe label text to include on the left column of the <fb:editor/> form.
name=[time|string] default: timeThe name within the form to send as a POST variable when the form is submitted and to use within FBJS.
value=[string] default: noneThe value to set in epoch seconds of what the drop-downs will be set to when the page loads.
Example FBML
Please see the <fb:editor/> tag
earlier in this chapter for an example.
Additional Information
The three drop-downs send three POST variables:
name_hourThe hour of the day
name_minThe minute of the hour
name_ampmThe section of the day
The selector is rounded to the nearest 15 minutes.
The drop-downs show only the time, not the date.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access