template::widget::ampmFragment (public)

 template::widget::ampmFragment element_reference fragment size type \
    value [ mode ] [ tag_attributes ]

Defined in packages/acs-templating/tcl/date-procs.tcl

Create a widget that shows the am/pm selection

Parameters:
element_reference (required)
fragment (required)
size (required)
type (required)
value (required)
mode (optional, defaults to "edit")
tag_attributes (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 template::util::date::get_property template::util::date::get_property (public) template::widget::menu template::widget::menu (public) template::widget::ampmFragment template::widget::ampmFragment template::widget::ampmFragment->template::util::date::get_property template::widget::ampmFragment->template::widget::menu

Testcases:
No testcase defined.
Source code:
    upvar $element_reference element
    array set attributes $tag_attributes

    set value [template::util::date::get_property $fragment $value]

    if { $mode ne "edit" } {
        set output {}
        append output "<input type=\"hidden\" name=\"$element(name).$fragment\" value=\"$value\">"
        append output $value
        return $output
    } else {
        return [template::widget::menu  "$element(name).$fragment" { {A.M. am} {P.M. pm}} $value attributes]
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: