0.5.4 • Published 2 months ago

techteec-lib v0.5.4

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

TechteecLib

techteec-lib/components

/data-table

Inputs
title: (string) Title of your data table
subtitle: (string) Subtitle of your data table
columnDefs: (ColumnDef[]) List of data table columns
data: (any[]) Current data
dataSize: (number) All data size
pageSize: (number) Initial page size
pageIndex: (number) Initial page index
filters: (DataTableFilter[]) request filters will be added to GeneralFilter model as key:value
haveSearch: (boolean) add SearchQuery to requests
isAsync: (boolean) Whether data will be refetched on each change or fetched once
sortActive: (string default: 'Id') Initial active sort column -user ColumnDef property-
sortDirection: ('asc' | 'desc' default: 'asc') Initial sort direction
isLoading: (boolean | null) Show data progress bar
menuLoadingRows: (number[]) Disable in action row
clickable: (boolean) Whether rows are clickable or not
btns: (DataTableButtonObject[]) Add buttons to the data table in order to give actions based on button index
preserveQueryParams: (boolean) Wether to preserve filter form values in url to go back to pr not
preserveSearchQuery: (boolean) Same as preserveQueryParams for SearchQuery
menuBtns: (DataTableButtonObject[]) add menu to each row
selectBtns: (DataTableButtonObject[]) add menu to selected rows
showSubmit: (boolean default: false) Whether to show submit button on filter form or not
isReport: (boolean default: false) Make the data table less density
searchQueryPlaceHolder: (string) Search control placeholder
haveSelect: (boolean) Whether data have select on rows or not
haveDownload: (boolean) Whether to add download data button or not
isDownloading: (boolean) true while downloading

Outputs
changed: (GeneralFilterModel) On each change in SearchQuery, Paginator, Sorting, Filters
rowClicked: (any) Fires when a row is clicked with current clicked element
btnClicked: (number) Return the index of clicked button of 'btns'
menuBtnClicked: (MenuClickEvent) Return row index,menu button index & current clicked object
selectBtnClicked: (SelectClickEvent) Return menu button index & all selected objects
downloadClicked: (GeneralFilterModel) Fires when the download button clicked

0.5.4

2 months ago

0.5.3

2 months ago

0.5.2

2 months ago

0.5.0

5 months ago

0.5.1

5 months ago

0.4.9

5 months ago

0.4.10

5 months ago

0.4.8

5 months ago

0.4.5

5 months ago

0.4.4

5 months ago

0.4.7

5 months ago

0.4.6

5 months ago

0.4.3

5 months ago

0.4.1

5 months ago

0.4.0

5 months ago

0.3.4

5 months ago

0.4.2

5 months ago

0.3.3

5 months ago

0.3.0

5 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.8

5 months ago

0.3.2

5 months ago

0.3.1

5 months ago

0.2.5

5 months ago

0.2.1

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.4

5 months ago

0.2.0

5 months ago

0.1.8

5 months ago

0.1.9

5 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago