Interface LibraryAdapter

LibraryAdapter is used to integrate the grid with a UI library. The grid uses adapters to render elements like buttons, text fields, etc. The grid comes with adapters for Material UI, AntD and Chakra. You can also create your own adapter. Please see https://reactdatagrid.com/examples?example=Material_Adapter for an example.

Hierarchy

  • LibraryAdapter

Properties

createCheckBox: ((props: GridCheckBoxProps) => unknown)

Type declaration

createDateField: ((props: GridDateInputElementProps) => unknown)

Type declaration

createElementFromNode: ((node: VirtualTreeNode, props: Record<string, unknown>, children: unknown) => unknown)

Type declaration

    • (node: VirtualTreeNode, props: Record<string, unknown>, children: unknown): unknown
    • Parameters

      Returns unknown

createIconButton: ((icon: GridIconButton, template: {
    props: {
        className: string;
        disabled: boolean;
        onClick: (() => void);
        title: string;
    };
}) => unknown)

Type declaration

    • (icon: GridIconButton, template: {
          props: {
              className: string;
              disabled: boolean;
              onClick: (() => void);
              title: string;
          };
      }): unknown
    • Parameters

      • icon: GridIconButton
      • template: {
            props: {
                className: string;
                disabled: boolean;
                onClick: (() => void);
                title: string;
            };
        }
        • props: {
              className: string;
              disabled: boolean;
              onClick: (() => void);
              title: string;
          }
          • className: string
          • disabled: boolean
          • onClick: (() => void)
              • (): void
              • Returns void

          • title: string

      Returns unknown

createSelectField: ((props: GridSelectElementProps) => unknown)

Type declaration

createTextField: ((props: GridInputElementProps) => unknown)

Type declaration

createTriStateCheckbox: ((props: TristateCheckBoxProps) => unknown)

Type declaration

Generated using TypeDoc