Initializes and returns a visibility view component.

  • Parameters

    • params: IParams

      The configuration parameters.

      • groups

        The groups of fields to display.

      • data

        The initial data values.

      • keyToTitle

        The function to generate a title from a key.

      • expandAll

        Flag indicating if all fields should be expanded by default.

      • readonly

        Flag indicating if the view should be readonly.

      • fullScreen

        Flag indicating if the view should be displayed in full screen.

      • fallback

        The component to display if the main component fails to load.

      • onLoadStart

        The function to call when the view starts loading.

      • onLoadEnd

        The function to call when the view finishes loading.

      • onSubmit

        The function to call when the form is submitted.

      • onChange

        The function to call when the form's data changes.

      • submitLabel

        The label for the submit button.

    Returns {
        open: boolean;
        pickData: (param?: any) => void;
        render: () => Element;
        setOpen: any;
    }

    • The visibility view component.