Miscellaneous
timeSelectTags()
Signature
Section titled “Signature”timeSelectTags() — returns any
Description
Section titled “Description”Builds and returns a string containing three select form controls for hour, minute, and second based on name.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | See documentation for textFieldTag. |
selected | string | yes | — | See documentation for selectTag. |
order | string | yes | hour,minute,second | See documentation for timeSelect. |
separator | string | yes | : | See documentation for timeSelect. |
minuteStep | numeric | yes | 1 | See documentation for timeSelect. |
secondStep | numeric | yes | 1 | See documentation for timeSelect. |
includeBlank | any | yes | false | See documentation for select. |
label | string | yes | — | See documentation for dateSelect. |
labelPlacement | string | yes | around | See documentation for textField. |
prepend | string | yes | — | See documentation for textField. |
append | string | yes | — | See documentation for textField. |
prependToLabel | string | yes | — | See documentation for textField. |
appendToLabel | string | yes | — | See documentation for textField. |
combine | boolean | yes | — | See documentation for dateSelect. |
twelveHour | boolean | yes | false | See documentation for timeSelect. |
Examples
Section titled “Examples”<!--- This "Tag" version of function accepts `name` and `selected` instead of binding to a model object --->
<cfoutput>
##timeSelectTags(name="timeOfMeeting" selected=params.timeOfMeeting)##
</cfoutput>
<!--- Show fields for `hour` and `minute` only --->
<cfoutput>
##timeSelectTags(name="timeOfMeeting", selected=params.timeOfMeeting, order="hour,minute")##
</cfoutput>