@cmds/field-settings

1.0.0 • Public • Published

FieldSettings FieldSettings

Used for ordering, showing, hiding fields in a view.

npm package

Example

<FieldSettings 
    fields={[{
        id: '1',
        name: 'Field 1',
        visibility: true
    }, {
        id: '2',
        name: 'Field 2',
        visibility: true
    }, {
        id: '3',
        name: 'Field 3',
        visibility: false
    }]}
    onSort={({oldIndex, newIndex}) => {
        // do something
    }}
    onShowOrHide={({id, visibility}) => {
        // do something
    }}
    onShowOrHideAll={({visibility}) => {
        // do something
    }}
/>

Readme

Keywords

Package Sidebar

Install

npm i @cmds/field-settings

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

823 kB

Total Files

13

Last publish

Collaborators

  • entercosmos