Skip to content

CriterionDefinition Type documentation

TypeScript declaration

import type { CriterionDefinition } from '@siemens/element-ng/filtered-search';

A CriterionDefinition is the definition of criteria in the SiFilteredSearchComponent. It defines the type and based this further attributes like multiselect and available options.

Properties
  • Optional configuration object for the datepicker.

    datepickerConfig?: Omit<DatepickerInputConfig, "enableDateRange" | "enableTwoMonthDateRange">

  • An optional label, which is used in the user interface.

    label?: TranslatableString

  • Defines whether multi selection of the options is possible in a typeahead. Setting it to true enables the checkbox besides the option values. When multiSelect is true, the value input field will be readonly, allowing user to select the values only from the typeahead.

    multiSelect?: boolean

  • The mandatory name of a criterion.

    name: string

  • Limit criterion options to the predefined ones and prevent typing. onlySelectValue enforces strictValue to true automatically.

    onlySelectValue?: boolean

  • This provides possible operators that the user can select for this criterion.

    operators?: string[]

  • The options provide possible values that the user can select for this criterion.

    options?: OptionType[]

  • Limit criterion options to the predefined ones.

    strictValue?: boolean

  • This provides the value type of the input field.

    validationType?: ValidationType

Types Documentation

import type { DatepickerInputConfig } from '@siemens/element-ng/datepicker';
Properties
import type { OptionType } from '@siemens/element-ng/filtered-search';

Type for options

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

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.

ValidationType

'string' | 'integer' | 'float' | 'date' | 'date-time'
type alias
import type { ValidationType } from '@siemens/element-ng/filtered-search';
import type { OptionCriterion } from '@siemens/element-ng/filtered-search';

It allows to specify a different value between the one which is rendered and the one which is used for the search.

Properties

WeekStart

'monday' | 'saturday' | 'sunday' | undefined
type alias
import type { WeekStart } from '@siemens/element-ng/datepicker';
import type { DatepickerConfig } from '@siemens/element-ng/datepicker';
Properties

Except where otherwise noted, content on this site is licensed under MIT License.