# meis-custom-table

> React custom table

Latest version **1.0.1** (published 2022-08-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install meis-custom-table
pnpm add meis-custom-table
yarn add meis-custom-table
bun add meis-custom-table
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-08-24 |
| First published | 2022-08-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 126.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mohammad Erfanul Islam Sifat |
| Maintainers | erfan.orangetoolz |
| Keywords | meis-custom-table, custom-table, react-table, table, table-with-pagination |

## Links

- npm: https://www.npmjs.com/package/meis-custom-table
- Repository: https://gitlab.com/npm_packages1/meis-custom-table
- Homepage: https://gitlab.com/npm_packages1/meis-custom-table#readme
- Issues: https://gitlab.com/npm_packages1/meis-custom-table/issues
- npm.io page: https://npm.io/package/meis-custom-table

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-08-24
- 1.0.0 — 2022-08-24

## README

table props:
1) isLoading: true/false => need to add skeleton
2) emptyContainer: {
    text: string / component
    overlay: component
}
3) data: array
4) pagination: {
    perPage: number
    currentPage: number
    totalRecords: number
    onChangePage: funtion
}
5) customHeader: component -> done
6) topBar: { -> all done
    title: string / component
    isShowDefaultSearch: true / false
    placeholder: string
    onChangeSearch: funtion
    defaultSearchValue: string,
}
6) select : {
    isShowHeaderCheckBox: true / false
    isShowView : true / false
    viewText: string
    actions: array => {title : string / component, action: function}
    checkBoxField: field name from each row default id
    search: {
        placeholder: 'Search contact',
        onChange: function,
        defaultValue: search
    }
}
7) rowDecoration: array => title=> string / component, value => function, minWidth: '100px'
8) tableWrapperclass: string -> done
9) renderPagination: component


demo
<MEISCustomTable 
    tableWrapperclass="campaign_report"
    isLoading={true}
    data={[
        {firstName: 'first', value: 101, email: 'asdafcf@asd.cd', number: '123412343' },
        {firstName: 'first 2', value: 102, email: 'asxcdf@asd.cd', number: '12341452343' },
        {firstName: 'first 3', value: 103, email: 'asdawef@asd.cd', number: '149412343' },
        {firstName: 'first 4', value: 104, email: 'asd3ef@asd.cd', number: '1234154543' },
    ]}
    customHeader={(<div>Here custom here will be added</div>)}
    topBar={{
        title: 'Table title',
        isShowDefaultSearch: true,
        placeholder: 'Search contact',
        onChangeSearch: (e) => {console.log(e)},
        defaultSearchValue: '017'
    }}
    select={{
        isShowHeaderCheckBox: true,
        onChangeCheckBox: (e) => {console.log(e)},
        isShowView:true,
        viewText: " contact (s) selected !",
        actions: [
            {title: 'Move', action: (e) => {console.log(e)}},
            {title: (<span>Delete</span>), action: (e) => {console.log(e)}},
        ],
        checkBoxField: 'value' //default will id
    }}
    pagination={{
        perPage:10,
        currentPage: 2,
        totalRecords: 135,
        onChangePage: (e) => {console.log(e)}
    }}
    renderPagination={(<div>Custom pagination will be render here</div>)}
    rowDecoration={[
        {title: 'Name', value: (row) => {return row.firstName}},
        {title: 'Email', value: (row) => {return row.email}},
        {title: 'Number', value: (row) => {return row.number},}
    ]}
    emptyContainer={{
        text: "No contact available !",
        overlay: (<div>Add more</div>)
    }}
/>

---
_Source: https://npm.io/package/meis-custom-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
