# @cmds/field-settings

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

Latest version **1.0.0** (published 2018-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cmds/field-settings
pnpm add @cmds/field-settings
yarn add @cmds/field-settings
bun add @cmds/field-settings
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-11-07 |
| First published | 2018-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 803.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | entercosmos |
| Keywords | react-component |

## Links

- npm: https://www.npmjs.com/package/@cmds/field-settings
- npm.io page: https://npm.io/package/@cmds/field-settings

## Dependencies (1)

- [react-sortable-hoc](https://npm.io/package/react-sortable-hoc.md) ^0.8.3

## Recent versions

- 1.0.0 (latest) — 2018-11-07

## README

# ![FieldSettings](https://user-images.githubusercontent.com/44801418/48110644-d4941a80-e27f-11e8-8b34-25f86db21daa.png) FieldSettings

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

[![npm package][npm-badge]][npm]

## Example

````jsx harmony
<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
    }}
/>
````

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.com/package/@cmds/field-settings

---
_Source: https://npm.io/package/@cmds/field-settings · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
