12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Zen</strong> ControlsAttributeControl componentattributesformatDescription has the same general-purpose attributes as any <strong>Zen</strong> control. Fordescriptions, see the section “Control Attributes.”On the client, the value is a string in the format YYYY-MM-DD. On theserver, the value has the %Timestamp datatype.Any HTML events defined for (onfocus, onclick, etc.) apply to each ofthe three drop-down lists independently.String that specifies the order in which to display the drop-down lists, from left to right.The default is "MDY". Possible values are:• "MDY" — Month, Day, Year• "DMY" — Day, Month, Year• "YMD" — Year, Month, Day• "YDM" — Year, Day, Month• "DM" — Day, Month• "MD" — Month, Day• "YM" — Year, Month• "Y" — Year• "M" — MonthThe value supplied for format can be a literal string, or it can contain a <strong>Zen</strong> #()# runtimeexpression.maxYearminYearmonthListInteger specifying the last year allowed in the year drop-down list. The default is thecurrent year plus 20.The value supplied for maxYear can be a literal string, or it can contain a <strong>Zen</strong> #()#runtime expression.Integer specifying the earliest year allowed in the year drop-down list. The default is1900.The value supplied for minYear can be a literal string, or it can contain a <strong>Zen</strong> #()# runtimeexpression.Comma-separated list of month names to display in the list of months that the user canchoose from the calendar. If you do not provide a monthList value, the default is:$$$Text("January,February,March,April,May,June,July,August,September,October,November,December")monthList has its ZENLOCALIZE datatype parameter set to 1 (true).This makes it easyto localize its text into other languages, and permits use of the $$$Text macros whenyou assign values to this property from client-side or server-side code.Any localized monthList string must remain a comma-separated list.136 <strong>Using</strong> <strong>Zen</strong> <strong>Components</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!