Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
titleGeneral

Component Palette Icon:




Panel
borderStylesolid
titleDescription

A DateTime Input is an easy way to select a date from a popup calendar. Simular to Similar to the DateTime Picker component, it takes up much less real estate on the screen. Configure the date and time format in the Property Editor using the 'formattedValue' property.



Panel
titleProperties


Perspective_property



NameDescriptionProperty Type

formattedValues



Deprecated
Version8.0.13


Selected value output as formatted strings. Replaced by the formattedValue property. 

Expand
titleClick here to see formattedValue properties


NameDescriptionProperty Type
datetimeDate and time in configured format.value: string
dateFormatted date from value.value: string
timeFormatted time from value.value: string



object

formattedValue


New_in
Version8.0.13


Date and time in configured format.


value: string

inputProps

Sets a style for this component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous.

object

modalStyle


New_in
Version8.0.13



Style applied to the Date picker modal (popup). Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.

object

pickerType


Whether to display and enable picker for date only, time only, or both date and time.

value: string

minDate


New_in
Version8.0.13


Minimum date/time as a Date object or timestamp in milliseconds. If null, the minimum date is 10 years in the past from today.

value: string
maxDate


New_in
Version8.0.13



Maximum date/time as a Date object or timestamp in milliseconds. If null, the minimum date is 10 years in the future from today

value: string
formatTemplate for formatting date display - must be valid moment.js format, e.g., 'MM/DD/YYYY h:mm a'.value: string
enabled

'False' will disable any interaction with the calendar.

Note

If the component is disabled, scripts can still run on the component. For example, if you add a script action script action to the onClick event, the script will fire when the user clicks on the calendar.


value: boolean
placeholderText for input field to display when no date/time is selected.value: boolean
localeCode for localization of language and formatting. Use the dropdown to select language.value: string
style

Sets a style for this component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.

object




Info
iconfalse
titlePerspective Component Events

The Perspective Event Types Reference page describes all the possible component event types for Perspective components. Not all component events support each Perspective component. The Component Events and Actions page shows how to configure events and actions on a Perspective component. Component scripting is handled separately and can be accessed from the Component menubar or by right clicking on the component.



Panel
titleExample

PropertyValueStyle Category
props.pickerTypedateN/A
props.formatMM/DD/YYYYN/A
props.style.borderStylesolidborder
props.style.borderColor#00AC00border
props.style.borderWidth2pxborder