Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL USER MANUAL VERSIONS

Ignition 8.1
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata
General

Component Palette Icon:





Description

The DateTime Picker component uses the calendar to select the date and time. You can choose the 'pickerType' to set both date and time, or just date. Configure the date and time format in the Property Editor using the 'formattedValue' property.  To use the DateTime Picker, select the month, date, and time on the component.

Properties

Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective.
This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.

NameDescriptionProperty Type
valueCurrent date/time as a Date object or timestamp in milliseconds.value: dropdown

formattedValues

  This feature was removed from Ignition in version 8.0.13

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

object

formattedValue

The following feature is new in Ignition version 8.0.13
Click here to check out the other new features

Date and time in configured format.

value: string

pickerType

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

value: string

minDate

The following feature is new in Ignition version 8.0.13
Click here to check out the other new features

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

The following feature is new in Ignition version 8.0.13
Click here to check out the other new features

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: strinng
formatTemplate for formatting date display - must be valid moment.js format, e.g., 'MM/DD/YYYY h:mm a'.value: string

locale

Code for localization of language and formatting. Use the dropdown to select language.

value: string

dismissOnSelect

The following feature is new in Ignition version 8.0.13
Click here to check out the other new features

Determines if the date picker should be dismissed when a date is selected.

value: boolean
enabled

'False' will disable any interaction with the calendar.

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

value: boolean
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

Perspective 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.

Example

PropertyValueStyle Category
props.formatMM/DD/YY hh:mm:ss aN/A
props.style.borderStylesolidborder
props.style.borderWidth1pxborder
props.style.borderColor#D90000border


  • No labels