1.7.0 • Published 7 months ago

react-angrid-ts v1.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

react-angrid-ts Demo

react-angrid-ts.

Installation

npm install react-angrid-ts

Features

  • custom css
  • localization
  • rtl support
  • dark theme
  • pagination
  • sortable

Usage Example

import {Angrid} from "rect-angrid-ts";

const columns = [
    {
        field: 'userId',
        headerName: 'User Id',
        description: 'user id that is unique',
        width: 30,
        sortable: true,
    },
    {
        field: 'fullName',
        headerName: 'Fullname',
        description: 'full name of user',
        width: 100,
        sortable: true,
    },
    {
        field: 'age',
        headerName: 'Age',
        description: 'age of user',
        width: 50,
        sortable: true,
    },
    {
        field: 'delete',
        headerName: 'delete(component cell)',
        description: 'delete user',
        width: 50,
        render: (row: any) => {
            return <button onClick={() => console.log(row)}>delete</button>
        },
    },
]

<div className='App' dir='rtl'>
            <Angrid
                rtl
                showRowNumber
                columns={columns}
                rows={createUsers()}

                onPageChange={(page, size) => console.log(page, size)}
                pageSize={10}
                showCurrentPage
                showNumberOfPage
                showTotalRecord
                rowHeight={30}
            />
        </div>

Props

ParameterDefaultRequireType
className-falsestring
themelightfalsedark/light
rowHeight30falsenumber
columnNumberTitle#falsestring
showRowNumbertruetrueboolean
columns[]trueobject[]
rows[]truearray
pageSize20falsenumber
loadingfalsefalseboolean
totalCount-falsenumber
showTotalRecordfalsefalseboolean
showCurrentPagefalsefalseboolean
showNumberOfPagefalsefalseboolean
showPageRangetruefalseboolean
showPageSelecttruefalseboolean
showPageNumbertruefalseboolean
showPageArrowtruefalseboolean
borderedfalsefalseboolean
textCurrentstringfalsestring
textTotalstringfalsestring
textNumberstringfalsestring
textEmptystringfalsestring
textPagestringfalsestring
rtlfalsefalseboolean
internalPaginatetruefalseboolean
onPageChange-truefunction

Pull Request

  • unit test
  • customize theme
  • customize dark mode
  • add filter
  • create Document
  • Responsive
1.7.0

7 months ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago