Axinom Mosaic Libraries
    Preparing search index...

    Interface CustomFilterProps

    interface CustomFilterProps {
        active?: boolean;
        labelId?: string;
        onError?: () => void;
        onSelect: (value: unknown, stringValue?: string) => void;
        onValidate?: (currentValue: unknown) => FilterValidationResult;
        value?: unknown;
    }
    Index

    Properties

    active?: boolean

    Wether or not the filter is active (default: false)

    labelId?: string

    Optional id for the label element. Assign to the label's id and reference from the input or group via aria-labelledby.

    onError?: () => void

    Callback triggered when validation fails

    onSelect: (value: unknown, stringValue?: string) => void

    Callback triggered when a new filter value is selected

    Type Declaration

      • (value: unknown, stringValue?: string): void
      • Parameters

        • value: unknown
        • OptionalstringValue: string

          if set, this value is used when displaying the filter value to the user

        Returns void

    onValidate?: (currentValue: unknown) => FilterValidationResult

    Callback triggered for custom validations of the filter

    value?: unknown

    Current Value of the filter