TWiki Variables » Search » Category: UI& Visualization

COLORPICKER{} -- color picker for use in HTML forms for TWiki applications

  • The %COLORPICKER{}% variable is handled by the ColorPickerPlugin.
  • Syntax: %COLORPICKER{ name="..." value="..." }%
  • Parameters:
    Parameter Description Default Example
    name Name of input field (required) name="text_color"
    value Initial color value, in hexadecimal notation for the combination of Red, Green, and Blue color values (RGB). (none) value="#0000ff"
    size Size of input field, in number of characters (browser default) size="8"
    class CSS class of input field or the rectangular color block (none) class="twikiInputField"
    style Style of input field or the rectangular color block (none) style="width: 190px; height: 32px"
    type Type of color widget:
    รข\x{fffd}ยข "below" - color picker is located below the input field;
    รข\x{fffd}ยข "popup" - pop-up a color picker window when clicking the button next to the input field
        (this uses very little vertical space);
    รข\x{fffd}ยข "view" - a read-only rectangular block colored in the color value (no color picker);
    รข\x{fffd}ยข "view-hex" - like view, in addition shows the color value as an RGB hexadecimal code (no color picker);
    type="below" type="view-hex"
    Additional parameters can be supplied; they will be added to the HTML input field or the rectangular color block.
  • Example:
    <form action="...">
    %COLORPICKER{ name="text_color" value="#123456" class="twikiInputField" type="popup" }%
    <form>
    Renders as:
  • Category: ApplicationsAndComponentsVariables, DatabaseAndFormsVariables, EditingAndContentUpdateVariables, FormattingAndRenderingVariables, UIAndVisualizationVariables
  • Related: ColorPickerPlugin, TWikiForms (this topic)

DASHBOARD -- build a dashboard with banner and boxes

DATEPICKER{} -- pop-up calendar to select a date for use in HTML forms

  • The %DATEPICKER{}% variable is handled by the DatePickerPlugin.
  • Syntax: %DATEPICKER{ name="..." value="..." }%
  • Parameters:
    Parameter Description Default ExampleSorted ascending
    class CSS class of input field. "twikiInputField" class="dateField"
    format Format of resulting date value.
    รข\x{fffd}ยข %a - abbreviated weekday name
    รข\x{fffd}ยข %A - full weekday name
    รข\x{fffd}ยข %b - abbreviated month name
    รข\x{fffd}ยข %B - full month name
    รข\x{fffd}ยข %C - century number
    รข\x{fffd}ยข %d - the day of the month (00 ... 31)
    รข\x{fffd}ยข %e - the day of the month (0 ... 31)
    รข\x{fffd}ยข %H - hour (00 ... 23)
    รข\x{fffd}ยข %I - hour (01 ... 12)
    รข\x{fffd}ยข %j - day of the year ( 000 ... 366)
    รข\x{fffd}ยข %k - hour (0 ... 23)
    รข\x{fffd}ยข %l - hour (1 ... 12)
    รข\x{fffd}ยข %m - month (01 ... 12)
    รข\x{fffd}ยข %M - minute (00 ... 59)
    รข\x{fffd}ยข %n - a newline character
    รข\x{fffd}ยข %p - "PM" or "AM"
    รข\x{fffd}ยข %P - "pm" or "am"
    รข\x{fffd}ยข %S - second (00 ... 59)
    รข\x{fffd}ยข %s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC)
    รข\x{fffd}ยข %t - a tab character
    รข\x{fffd}ยข %U, %W, %V - the week number. The week 01 is the week that has the Thursday in the current year, which is equivalent to the week that contains the fourth day of January. Weeks start on Monday.
    รข\x{fffd}ยข %u - the day of the week (1 ... 7, 1 = MON)
    รข\x{fffd}ยข %w - the day of the week (0 ... 6, 0 = SUN)
    รข\x{fffd}ยข %y - year without the century (00 ... 99)
    รข\x{fffd}ยข %Y - year including the century (ex. 2012)
    รข\x{fffd}ยข %% - a literal % character
    "%Y-%m-%d" format="%e %b %Y"
    id ID of input field, optional. "id_" + name id="idStart"
    name Name of input field.
    φ: No output is shown if the name parameter is missing, but the CSS and Javascript are loaded.
    (requiredφ) name="Start"
    Additional HTML input field attributes, such as alt, disabled, maxlength, onblur, onchange, onfocus, readonly, style, tabindex, title    
    size Size of input field, in number of characters. (calculated as needed) size="12"
    value Initial date value. "" (today) value="2012-12-31"
  • Example:
    <form action="...">
    %DATEPICKER{ name="Start_Date" }%
    <form>
  • Expands to:
  • Category: ApplicationsAndComponentsVariables, DatabaseAndFormsVariables, DateAndTimeVariables, EditingAndContentUpdateVariables, FormattingAndRenderingVariables, UIAndVisualizationVariables
  • Related: DatePickerPlugin, TWikiForms (this topic)

Total: 3 variables

Related Topics: TWikiVariables, TWikiVariablesSearch, TWikiVariablesQuickStart

 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.UIAndVisualizationVariables