Interface representing the properties of a Slider Field component.

interface ISliderFieldProps<Data = IAnything, Payload = IAnything> {
    disabled?: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    labelFormatSlider?: (v: number) => string | number;
    leadingIcon?: any;
    leadingIconClick?: (
        value: Value,
        data: Data,
        payload: Payload,
        onValueChange: (v: Value) => void,
        onChange: (data: Data) => void,
    ) => void;
    leadingIconRipple?: boolean;
    leadingIconTabIndex?: number;
    maxSlider?: number;
    minSlider?: number;
    readonly?: boolean;
    sliderRailColor?: (v: number) => string;
    sliderSteps?: { label: string; value: number }[];
    sliderThumbColor?: (v: number) => string;
    sliderTrackColor?: (v: number) => string;
    stepSlider?: number;
    trailingIcon?: any;
    trailingIconClick?: (
        value: Value,
        data: Data,
        payload: Payload,
        onValueChange: (v: Value) => void,
        onChange: (data: Data) => void,
    ) => void;
    trailingIconRipple?: boolean;
    trailingIconTabIndex?: number;
}

Type Parameters

  • Data = IAnything

    The data type used in the Field component.

  • Payload = IAnything

    The payload type used in the Field component.

Hierarchy (View Summary)

Properties

disabled?: boolean

Represents the disabled property extracted from a field.

groupRef?: (element?: null | HTMLDivElement) => void

Represents the optional property 'groupRef' of an object of type IField<Data, Payload>.

labelFormatSlider?: (v: number) => string | number

Specifies the format for the labels of a slider component.

leadingIcon?: any

Represents the leading icon of a field.

leadingIconClick?: (
    value: Value,
    data: Data,
    payload: Payload,
    onValueChange: (v: Value) => void,
    onChange: (data: Data) => void,
) => void

This variable represents an optional function called leadingIconClick, which is a property of the IField interface. It is picked from the PickProp type, using the 'leadingIconClick ' key.

leadingIconRipple?: boolean

Retrieve the value of the 'leadingIconRipple' property from a given object.

The object which contains the 'leadingIconRipple' property.

The value of the 'leadingIconRipple' property.

leadingIconTabIndex?: number
maxSlider?: number

The maximum value for a slider in a field of a data object payload.

minSlider?: number

The minimum value for a slider in a field.

readonly?: boolean

Retrieves the readonly property value from the provided object.

The object from which to retrieve the readonly property.

  • The value of the readonly property.
sliderRailColor?: (v: number) => string

Retrieves the value of the sliderRailColor property from the given object.

Type declaration

    • (v: number): string
    • Parameters

      • v: number

      Returns string

      • The value of the sliderRailColor property.
sliderSteps?: { label: string; value: number }[]

Defines custom steps for the slider component.

sliderThumbColor?: (v: number) => string

The color of the slider thumb.

sliderTrackColor?: (v: number) => string

The color of the slider track.

stepSlider?: number

Represents the configuration for a step slider field.

trailingIcon?: any

Sets the trailing icon of the field.

The trailing icon to be set for the field.

trailingIconClick?: (
    value: Value,
    data: Data,
    payload: Payload,
    onValueChange: (v: Value) => void,
    onChange: (data: Data) => void,
) => void

Represents the event handler for when the trailing icon of a field is clicked.

trailingIconRipple?: boolean

The trailingIconRipple variable is an optional property that represents the ripple effect configuration for the trailing icon in a field component. It is a pick property that is extracted from the trailingIconRipple property of the IField interface.

The trailingIconRipple property defines the behavior and appearance of the ripple effect when interacting with the trailing icon.

trailingIconTabIndex?: number