SiDateRangeFilterComponent documentation¶
selector
si-date-range-filter
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
advancedLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.ADVANCED:Advanced` | label for the "advanced" switch |
afterLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.AFTER:After` | label for the "After" toggle |
applyLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.APPLY:Apply` | label for the "apply" switch |
basicMode ¶ | ("input" | "calendar" ) | 'calendar' | Determines whether to show input fields or a date-range calendar in basic mode. When time selection is enabled, this has no effect and input fields are always shown. |
beforeLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.BEFORE:Before` | label for the "Before" toggle |
dateLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.DATE:Date` | label for "Date" field / radio button |
datepickerConfig ¶ | DatepickerInputConfig | Base configuration on how the dates should be displayed, parts of it may be overwritten internally. | |
datePlaceholder ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.DATE_PLACEHOLDER:Select date` | Placeholder for date fields |
enableTimeSelection ¶ | boolean | false | Determines if time is selectable or only dates |
fromLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.FROM:From` | label for the "Reference point" title |
hideAdvancedMode ¶ | boolean | false | Hides the advanced mode if input allows |
nowLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.NOW:Now` | label for the "Now" checkbox |
presetLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.PRESETS:Presets` | label for the "search" input |
presetList ¶ | DateRangePreset [] | List of preset time ranges. When not present or empty, the preset section won't show | |
presetSearch ¶ | boolean | true | Determines if there's a search field for the preset list |
previewLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.PREVIEW:Preview` | label for the "Preview" title |
range | DateRangeFilter | The filter range object | |
rangeLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.RANGE:Range` | label for the "Range" title |
refLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.REF_POINT:Reference point` | label for the "Reference point" title |
reverseInputFields ¶ | boolean | false | Reverses the order of the from/to fields |
searchLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.SEARCH:Search` | label for the "search" input |
showApplyButton ¶ | boolean | false | Determines whether to show the 'Apply' button |
todayLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.TODAY:Today` | label for the "Today" checkbox |
toLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.TO:To` | label for the "Reference point" title |
unitLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.UNIT:Unit` | label for the "Unit" select |
valueLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.VALUE:Value` | label for the "value" number input |
withinLabel ¶ | TranslatableString | $localize`:@@SI_DATE_RANGE_FILTER.WITHIN:Within` | label for the "Within" toggle |
Output Properties¶
Name | Type | Description |
---|---|---|
applyClicked ¶ | void | Event fired when the apply button has been clicked |
rangeChange ¶ | DateRangeFilter | The filter range object |
Types Documentation¶
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
---|
|
|
Translatable import imported from @siemens/element-translate-ng |
---|
|
Simple DateRangeFilter preset based on offset from now | ||||
---|---|---|---|---|
|
Advanced DateRageFilter preset with custom calculation | |||||
---|---|---|---|---|---|
|
Except where otherwise noted, content on this site is licensed under MIT License.