Polymer element for selecting a time
- Source:
Members
-
<static> disabled
-
Disabled state of element
- Source:
-
<static> format
-
Display format 12/24 hr
- Source:
-
<static> mainLabel
-
Descriptive label
- Source:
-
<static> name
-
Local storage key
- Source:
-
<static> noseparator
-
Visibility state of optional divider
- Source:
-
<static> secondaryLabel
-
Secondary descriptive label
- Source:
-
<static> sectionTitle
-
Optional group title
- Source:
-
<static> timeLabel
-
Time display label
- Source:
-
<static> value
-
Time value '00:00' format
- Source:
Methods
-
<private, static> _formatChanged()
-
Observer: Global Time format changed
- Source:
-
<private, static> _formatTime(timeString) → {string}
-
Get the time suitable for display
Parameters:
Name Type Description timeString
string format '00:00'
- Source:
Returns:
formatted time
- Type
- string
-
<private, static> _init()
-
Initialize value if it is not in localstorage
- Source:
-
<private, static> _onTap()
-
Event: Show dialog on tap
- Source:
-
<private, static> _onTimeSelected()
-
Event: Set time on tap of OK button
- Source:
-
<private, static> _setTimeLabel(value)
-
Set the time display label
Parameters:
Name Type Description value
string time in '00:00' format
- Source:
-
<private, static> _valueChanged(newValue)
-
Observer: Value changed
Parameters:
Name Type Description newValue
string value we changed to
- Source: