Socket
Socket
Sign inDemoInstall

@uxf/data-grid

Package Overview
Dependencies
10
Maintainers
1
Versions
282
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxf/data-grid


Version published
Maintainers
1
Created

Readme

Source

DataGrid

Installation / Upgrade

yarn add @uxf/core @uxf/ui @uxf/data-grid

// or

yarn upgrade @uxf/core@latest @uxf/ui@latest @uxf/data-grid@latest

CSS dependencies

@import url("tailwindcss/components.css");
@import url("@uxf/data-grid/styles.css");
@import url("@uxf/ui/button/button.css");
@import url("@uxf/ui/dropdown/dropdown.css");
@import url("@uxf/ui/form-component/form-component.css");
@import url("@uxf/ui/icon/icon.css");
@import url("@uxf/ui/input/input.css");
@import url("@uxf/ui/input/input-basic.css");
@import url("@uxf/ui/label/label.css");
@import url("@uxf/ui/pagination/pagination.css");
@import url("@uxf/ui/_select-base/select-base.css");

State and actions of data-grid

import { useDataGridControl } from "@uxf/data-grid/use-data-grid-control";

const { state, actions } = useDataGridControl({
    schema ,
    initialState: "Request or string (base64 encoded request)",
    userConfig: {
        columns: {
            id: { isHidden: true },
        }
    },
    isDebug: true,
});

Supported FilterHandlers

  • bool - Select (yes / no / null)
  • checkbox, boolean - Checkbox (is sent only if checkbox is checked)
  • date
  • datetime
  • entityMultiSelect
  • entitySelect
  • interval
  • multiSelect
  • select
  • string, text

Examples

DataGrid

import { useDataGridControl } from "@uxf/data-grid/use-data-grid-control";
import { useDataGridFetching } from "@uxf/data-grid/use-data-grid-fetching";

function BasicExample() {
    const { state, actions } = useDataGridControl({ schema });
    const { isLoading, error, data, onReload } = useDataGridFetching(loader, schema, "grid-name", state);

    return (
        <DataGrid
            onReload={onReload}
            state={state}
            actions={actions}
            data={data}
            isLoading={isLoading}
            error={error}
            schema={schema}
        />
    );
}

Keywords

FAQs

Last updated on 29 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc