DataItemDateTimeFormat Class
Declaration
export class DataItemDateTimeFormat extends SerializableModel
The DataItemDateTimeFormat class provides settings that allow you to select format types for date-time dimension values displayed for different group intervals (like Year, Month, Year-Quarter, etc.). This class defines a number of properties used to specify a format type that corresponds to a particular group interval.
Note that date-time fields can originate measures. If a measure calculates a maximum or minimum summary, the resulting values are of the date-time type. These values are formatted with the DataItemDateTimeFormat.dateFormat setting. For measures, all other settings provided by this class are ignored.
Use the DataItem.dateTimeFormat property to access date-time format settings.
Initializes a new instance of the DataItemDateTimeFormat
class.
constructor(
modelJson?: any,
serializer?: ModelSerializer
)
Name |
Type |
Description |
modelJson |
any |
A JSON object used for dashboard deserialization. Do not pass this parameter directly.
|
serializer |
ModelSerializer |
An object used for dashboard deserialization. Do not pass this parameter directly.
|
Properties
Specifies the format type associated with the DayMonthYear group interval.
dateFormat: ko.Observable<DateFormat>
Specifies the format type associated with the DateHour group interval.
dateHourFormat: ko.Observable<DateTimeFormat>
dateHourMinuteFormat: ko.Observable<DateTimeFormat>
dateTimeFormat: ko.Observable<DateTimeFormat>
dayOfWeekFormat: ko.Observable<DayOfWeekFormat>
exactDateFormat: ko.Observable<ExactDateFormat>
hourFormat: ko.Observable<HourFormat>
monthFormat: ko.Observable<MonthFormat>
quarterFormat: ko.Observable<QuarterFormat>
yearFormat: ko.Observable<YearFormat>
Methods
getInfo(): ISerializationInfoArray