Extends
- ember/Component
- module:mixins/sl-tooltip-enabled
Members
(inner) attributeBindings :Array.<String>
Type:
- Array.<String>
- Source:
(inner) classNames :Array.<String>
Type:
- Array.<String>
- Source:
(inner) format :String
String name for the format to render inline; can be "date", "datetime", or "relative"
Type:
- String
- Source:
(inner) layout :Object
Type:
- Object
- Source:
(inner) locale :String
Type:
- String
- Default Value:
- 'en'
- Source:
(inner) tagName :String
Type:
- String
- Default Value:
- 'time'
- Source:
(inner, nullable) timezone :String
String representing the full timezone name, as used by and interpreted by Moment-timezone: http://momentjs.com/timezone/docs/#/using-timezones/
Type:
- String
- Default Value:
- null
- Source:
(inner) title :module:addon/components/sl-date-time~datetime
Alias to datetime
; the text to use for the component's tooltip
Type:
- Source:
(inner) value :Array|Date|moment|Number|Object|String|undefined
The bound value of the component's date value
Type:
- Array | Date | moment | Number | Object | String | undefined
- Default Value:
- new Date()
- Source:
Methods
(inner) datetime() → {String}
The date-time's value formatted as a datetime string
- Source:
Observes:
- timezoneString, value
Returns:
- Type
- String
(inner) formattedValue() → {String}
Formatted string based on value and supplied format
- Source:
Observes:
- format, momentValue
Returns:
- Type
- String
(inner) momentValue() → {Object}
The component's current value wrapped in moment
- Source:
Observes:
- value
Returns:
- Type
- Object
(inner) timezoneString() → {String}
Formatted timezone string based on component's timezone value
- Source:
Observes:
- timezone, momentValue
Returns:
- Type
- String