1.8.5 • Published 5 years ago

@gemcook/table v1.8.5

Weekly downloads
75
License
MIT
Repository
-
Last release
5 years ago

@gemcook/table


npm version

React Table Component.

Online Demo

Installation

npm install --save @gemcook/table

or

yarn add @gemcook/table

Usage

SCSS

Import @gemcook/table/lib/styles/index.scss to your SCSS.

@import '~@gemcook/table/lib/styles/index';

Local Pagination

Use 'makeLocalActive' to generate active.

Remote Pagination

Example

Documentaion

Props

  • There are six required items
  • For Remote Pagination, there are 8 required items
ParameterTypeRequiredDefaultDescription
activeanytrueundefinedData displayed in the table
columnsReactElementtrueundefinedTable columns
currentnumbertrueundefinedCurrent page number
totalCountnumbertrueundefinedMaximum number of all data
totalPagesnumbertrueundefinedMaximum number of pages (use pagination)
updateCurrent(current: number) => voidtrueundefined-
loadingbooleanfalse (Required for remote pagination)false-
disabledbooleanfalse (Required for remote pagination)falseSet 'pagination' to disabled
sortState{key: string, order: enum}falseundefinedEnum: asc desc
updateSortState(sortState: object) => voidflaseundefined-
pageSizenumberfalse10Number of rows in table
updatePageSize(current: number, pageSize: number) => voidfalseundefined-
noDataMessagestringfalse'Data does not exist'-
outlinebooleanfalsetrueWhether to display the outer frame
showPaginationbooleanfalsetrueWhether to display pagination-
paginationPositionstringfalserightPosition of placement of pagination
showSizeChangerbooleanfalsefalse-
scrollTopbooleanfalsefalse-

Override Styles

$table__main-color: #fa6681 !default;
$table__link-color: #fa6681 !default;
$table__bg-color: white !default;
$table__sort-default-color: #808b97 !default;
$table__thead-border-color: #e9ecef !default;
$table__th-text-color: #7d7d7d !default;
$table__td-text-color: #7d7d7d !default;
$table__nodata-text-color: #404b69 !default;

API

pagination integration

Confirm the API of pagination from this link.

License

@gemcook/table is released under the MIT license.

1.8.5

5 years ago

1.8.4

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1-test

5 years ago

1.6.0

6 years ago

1.5.6

6 years ago

1.5.5

6 years ago

1.5.4

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.10

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.0.0

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago