A layout component that renders a container

element with optional child elements.

  • Type Parameters

    • Data extends unknown = any

      A generic type that specifies additional data passed to the component.

    Parameters

    • props: IDivLayoutProps<Data, any> & IDivLayoutPrivate<Data>

      The properties of the DivLayout component.

      Interface for specifying the props of a DivLayout 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: Payload) => 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.

      • 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 child elements to render inside the div container.

      • className

        The CSS class name to apply to the div container.

      • style

        The inline styles to apply to the div container.

    Returns Element

    The rendered DivLayout component.

Properties

Properties

displayName: string