A layout wrapper component that stretches its children horizontally and vertically.

  • Type Parameters

    • Data extends unknown = any

      The type of the data passed to the layout.

    Parameters

    • props: IStretchLayoutProps<Data, any> & IStretchLayoutPrivate<Data>

      The properties passed to the component.

      Represents the props for a stretch layout component.

      • Optionalbaseline?: 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.

      • OptionalclassName?: string
      • OptionaldesktopHidden?: boolean | (payload: any) => boolean

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

      • Optionaldisabled?: boolean

        Represents the disabled property of a field.

      • Optionalfeatures?: 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.
      • Optionalhidden?: 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.

      • OptionalinnerPadding?: string
      • OptionalisDisabled?: (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.

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

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

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

        Represents the isVisible property of a field in a form.

      • OptionalnoBaseline?: 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.

      • OptionalphoneHidden?: boolean | (payload: any) => boolean

        Represents the phoneHidden property of a field object.

      • Optionalstyle?: any
      • OptionaltabletHidden?: boolean | (payload: any) => boolean

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

      • OptionaltestId?: string

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

      • children

        The children components to be rendered inside the layout.

      • className

        The additional CSS class name(s) to apply to the root element.

      • style

        The inline styles to apply to the root element.

      • innerPadding

        The padding to apply to the container element.

    Returns Element

    • The rendered StretchLayout component.

Properties

Properties

displayName: string