1.0.1 • Published 6 years ago

mui-drip-table v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

NPM

Downloads Build Status Coverage Status Codacy Badge MIT License


インストール

・パッケージ本体

npm install mui-drip-table

・依存パッケージ

npm install @material-ui/core @material-ui/icons

デモページ

demo

sample code


変更履歴

CHENGE_LOG


機能

・テーブル一覧表示
・カラムソート
・フィルタリング
・ページネーション
・表示行数制御
・行選択
・検索
・削除
・CSVダウンロード
・プリント


API

<DripTable />

サポートするprops:

NameTypeDescription
titlearrayテーブルタイトル。
columnsarrayテーブルヘッダー。文字列の配列または、オプションを含むオブジェクト。
dataarrayテーブルデータ。文字列の配列。
optionsobjectテーブル機能の制御を設定。

Options:

NameTypeDefaultDescription
filterTypestring'dropdown'フィルタリングタイプを指定。 "checkbox"、"dropdown"、"multiselect"の3種類
textLabelsobjectラベルを指定。詳細
paginationbooleantrueページネーション機能の有効・無効。
selectableRowsbooleantrue行選択機能の有効・無効。
caseSensitivebooleanfalse検索アクション実行時、大文字と小文字の区別の有効・無効。
responsivestring'stacked'ヘッダーのタイプを指定。 "stacked"、"scroll"の2種類
rowsPerPagenumber101ページ当たりの最大表示行数。
rowsPerPageOptionsarray5,10,15,100表示行数選択項目。
rowHoverbooleantrue行のホバー有効・無効。
sortFilterListbooleantrueフィルタリストのソート有効・無効。
sortbooleantrue列のソート有効・無効。
filterbooleantrueフィルターアイコン表示の有効・無効。
searchbooleantrue検索アイコン表示の有効・無効。
printbooleantrueプリントアイコン表示の有効・無効。
downloadbooleantrueダウンロードアイコン表示の有効・無効。
onRowsSelectfunction行選択実行後の後続処理を設定。詳細
onRowsDeletefunction行削除実行後の後続処理を設定。詳細
onChangePagefunctionページネーション実行後の後続処理を設定。
onChangeRowsPerPagefunction表示行数変更後の後続処理を設定。
onSearchChangefunction検索実行後の後続処理を設定。
onFilterChangefunctionフィルター設定変更時の後続処理を設定。
onColumnSortChangefunctionソート実行時の後続処理を設定。
onColumnViewChangefunction表示カラムの変更後の後続処理を設定。

Column:

NameTypeDescription
Namestringテーブルヘッダーに表示されるカラム名
optionsobjectテーブル機能の制御を設定。下記オプション項目を参照。

Column Options:

NameTypeDefaultDescription
displaybooleantrueカラム表示の有効・無効。
filterbooleantrueフィルター機能の有効・無効。
sortbooleantrueソート機能の有効・無効。
customRenderfunctionデータの表示をカスタム。

テーブルスタイルのカスタマイズ

詳細

1.0.1

6 years ago

1.0.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago