Drag and Drop
Powered By GitBook
Time Input

Time Input Overview

A Time Input component is helpful when you want the user of your app to easily select a specific time using the native Android or iOS date picker
Native Android Time Picker on the left and iOS on the right

Properties

Time Input

Property
Description
Data Type
Style
Format to use when displaying selected date
Select from menu
Font Size
Size of font when displaying date
Number
Font Style
Select whether font is normal or italic
Select from menu
Font Weight
Set boldness of font
Select from menu
Color
Color of font when displaying date
Color
The following formats are currently available to use as Style:
    Hour:Minute AM/PM, eg. 3:30 PM
    Hour:Minute 24h, eg. 15:30

Layout

Property
Description
Data Type
X
Location of top left corner of Time Input on X-axis, where the left hand side is X=0
Number
Y
Location of top left corner of Time Input on Y-axis, where the top side is Y=0
Number
Height
Height of Time Input in pixels
Number
Width
Width of Time Input in pixels
Number
Visible
Set whether the Time Input is visible
True/False

Style

Property
Description
Data Type
Border Width
Width of border around Time Input in pixels
Number
Border Radius
Radius of corners of border on Time Input in degrees
Number
Border Color
Color of border (only visible if border width > 0)
Color
Border Style
Set whether border style is solid, dotted or dashed (only visible if border width > 0)
Select from menu

โ€‹

Save the time

The time that a user selects will show up automatically in the Time Input label but if you want to save the date somewhere to be uploaded later, you'll need to add a block like the one below.
Event Property
Output
Get Time
Date in whichever format you specify
Get Hours
Hour of the Day from 1-24
Get Minutes
Minutes from 1-60

Blocks

Events

Time Picked

Fires when the user has selected a time with the Time Input

Functions

Launch Picker

Launches the Time Input picker for the user to select a time.

Get Hour

Returns the hour of the currently selected time in 24 hour format.
Example: if the user selects 2:30 PM, this block will return 14.

Get Minute

Returns the minute of the currently selected time.
Example: if the user selects 2:30 PM, this block will return 30.

Get Time

Returns the selected time in the same format as the Style property of the Time Input.
Example: if the user selects 2:30 PM, and the Style is set to Hour:Minute AM/PM, this block will return 2:30 PM.
If the user selects 2:30 PM, and the Style is set to Hour:Minute 24h, this block will return 14:30.

Properties

Set and get properties of the Time Input

Style

Computed Height and Width

Returns the height/width of the Time Input on the device screen in pixels.

Visible

Font Size

Color

Background Color

Set the background color of the Time Input as it is displayed in the project.

Font Style

Font Weight

Text Align

Set the Text Alignment of the Time Input to Auto, Left, Right, Center or Justify.
โ€‹
Last modified 26d ago