Date Input Component
Overview
The date input component allows users to easily select dates. It's like a digital calendar where users can pick dates for appointments, deadlines, or any time-related tasks within an app. These components are essential because they simplify entering dates, reducing errors and ensuring accuracy. The date input component utilizes the native Android and iOS date pickers.
Properties
Date Input
Layout
Style
Date Input Blocks
Event Blocks
You can trigger actions to happen when an event occurs.
When Date Input Date Picked
This event fires when the user has selected a date using the date picker.
Function Blocks
Call Date Input's Get Date
Returns the date from the date picker in the format Mon., DD, YYYY.
Call Date Input's Get Day
Returns the date from the date picker in numeric form. For example, if the user selects February 17, 2024, this block returns 17. If they select 5 March 2025, this block returns 5.
Call Date Input's Get Month
Returns the month from the date picker in numeric form. For example, if the user selects February 17, 2024, this block returns 2. If they select 5 March 2025, this block returns 3.
Call Date Input's Get Year
Returns the year from the date picker in YYYY form.
Call Date Input's Launch Picker
Opens the date picker to prompt the user to enter a date.
Properties Blocks
There are two types of property blocks: dark green "set" and light green "get" blocks. The specific blocks available vary according to the UI component.
The dark green set blocks allow you to change the component's properties using blocks. For example, if you don't want a group component to be enabled for a user until they've typed a set number of characters into a text input component, you can use the group's dark green set group's disabled status block.
The light green get blocks allow you to access the properties of a component (e.g. color, font, width, text, etc.).
Last updated