@symply.io/basic-components 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
@@ -844,15 +844,15 @@ import TablePagination from '@symply.io/basic-components/TablePagination';
|
|
844
844
|
|
845
845
|
<h5>Props</h5>
|
846
846
|
|
847
|
-
| Name | Type | Default
|
848
|
-
| ------------------- | --------------- |
|
849
|
-
| colSpan | number |
|
850
|
-
| count | number |
|
851
|
-
| onPageChange | func |
|
852
|
-
| onRowsPerPageChange | func |
|
853
|
-
| page | number |
|
854
|
-
| rowsPerPage | number |
|
855
|
-
| rowsPerPageOptions | Array\<number\> |
|
847
|
+
| Name | Type | Default | Required | Description |
|
848
|
+
| ------------------- | --------------- | ---------------- | -------- | ------------------------------------------------------------ |
|
849
|
+
| colSpan | number | | true | The number of columns a cell should span. |
|
850
|
+
| count | number | | true | The total count of all data. |
|
851
|
+
| onPageChange | func | | true | Callback fired when the `page` value is changed.<br />**Signature:**<br/>`function(event: MouseEvent<HTMLButtonElement> ) => void,value: number`<br/>*value:* The value of the `page` . |
|
852
|
+
| onRowsPerPageChange | func | | true | Callback fired when the `Select` value is changed.<br />**Signature:**<br/>`function(event: ChangeEvent<HTMLInputElement ` |
|
853
|
+
| page | number | | true | The current page index. |
|
854
|
+
| rowsPerPage | number | | true | How many rows per page. |
|
855
|
+
| rowsPerPageOptions | Array\<number\> | [10, 20, 30, 50] | false | The options for setting how many rows per page. |
|
856
856
|
|
857
857
|
|
858
858
|
|