Represents the props for a stretch layout component.

interface IStretchLayoutProps<Data = IAnything, Payload = IAnything> {
    baseline?: boolean;
    className?: string;
    desktopHidden?: boolean | (payload: any) => boolean;
    disabled?: boolean;
    features?: string[];
    hidden?: boolean | (payload: any) => boolean;
    innerPadding?: string;
    isDisabled?: (v: Data, payload: any) => boolean;
    isReadonly?: (v: Data, payload: any) => boolean;
    isVisible?: (v: Data, payload: any) => boolean;
    noBaseline?: boolean;
    phoneHidden?: boolean | (payload: any) => boolean;
    style?: any;
    tabletHidden?: boolean | (payload: any) => boolean;
    testId?: string;
}

Type Parameters

  • Data = IAnything

    The type of data being passed to the layout.

  • Payload = IAnything

    The type of payload being passed to the layout.

Hierarchy (View Summary)

Properties

baseline?: boolean

Represents an optional property baseline that is picked from the interface IField using the PickProp utility type.

The type of data associated with the field.

The type of payload associated with the field.

className?: string
desktopHidden?: boolean | (payload: any) => boolean

Represents the optional property desktopHidden of type PickProp<IField<Data, Payload>, 'desktopHidden'>.

disabled?: boolean

Represents the disabled property of a field.

features?: string[]

Retrieves the 'features' property from a given variable.

The type of the variable.

The property name to retrieve.

The variable to extract the property from.

  • The extracted 'features' property.
hidden?: boolean | (payload: any) => boolean

Represents the 'hidden' property of an object.

The type of the field object.

The type of the data object.

The type of the payload object.

innerPadding?: string
isDisabled?: (v: Data, payload: any) => boolean

Represents the isDisabled property of a field in a form. The isDisabled property determines whether the field is disabled or not.

isReadonly?: (v: Data, payload: any) => boolean

Retrieves the value of the 'isReadonly' property from the given variable.

Type declaration

    • (v: Data, payload: any): boolean
    • Parameters

      Returns boolean

      The value of the 'isReadonly' property.

isVisible?: (v: Data, payload: any) => boolean

Represents the isVisible property of a field in a form.

noBaseline?: boolean

Represents an optional property noBaseline that is picked from the interface IField using the PickProp utility type.

The type of data associated with the field.

The type of payload associated with the field.

phoneHidden?: boolean | (payload: any) => boolean

Represents the phoneHidden property of a field object.

style?: any
tabletHidden?: boolean | (payload: any) => boolean

Represents the optional property 'tabletHidden' in a field object.

testId?: string

Идентификатор для отладки json шаблона