3.1.3 • Published 1 year ago

@uxland/uxl-grid v3.1.3

Weekly downloads
15
License
Apache-2.0
Repository
github
Last release
1 year ago

UXL Grid npm version

Build StatusStatementsBranchesFunctionsLines
Build StatusStatementsBranchesFunctionsLines

Installation

npm i @uxland/uxl-grid

How to use
<body>
    <uxl-grid></uxl-grid>
</body>

Properties

The following properties can be used to set up the component information

Property nameDescription
sourceSource data for the table. Need to be an array
columnsThat property defines the table columns to display, the property name of the data source item, the display name of the table & the initial sort mode ("ASC or "DES") (optional). Need to be an array [{property: string; displayName: string; order?: IOrder;}]
renderCardOptional. This property sets a function that accepts the item as a parameter and return the html that will be rendered as the contents of the card that replaces the row when media query is phone size
showHeaderThat property allow control the table header visibility. Default true

Column options

Property nameDescription
propertyProperty name value of the data source
displayNameRequired.Display name of the table
orderOptional. Initial sort mode. Values: "ASC" or "DESC"
renderCellOptional. Function that receives item as a parameter and should return the html that should be rendered in that column for that item.Example: (item) => html${items.price}€ In case, renderCell is not informed the property value will be rendered.
orderCellValueOptional. Function that receives item as a parameter and should return the value of the cell when. Example: (item) => item.name.length. In case, orderCellValue is not informed the property value will be used to order
Styling

The following custom parts are available for styling

Css part nameDescription
tableCustomize table tag
table__headerCustomize table header
table__header_cellCustomize table header cell
table__rowCustomize table row for boy table
table__row-cellCustomize table row cell
Events

The following custom events are available to listen

Event nameDescription
uxl-grid-row-cell-selectedClick event in a table body cell

Thanks

3.1.3

1 year ago

3.1.2

3 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0-beta.10

4 years ago

3.0.0-beta.7

4 years ago

3.0.0-beta.9

4 years ago

3.0.0-beta.8

4 years ago

3.0.0-beta.6

4 years ago

3.0.0

4 years ago

3.0.0-beta.3

4 years ago

3.0.0-beta.5

4 years ago

3.0.0-beta.4

4 years ago

3.0.0-beta.2

4 years ago

3.0.0-beta.1

4 years ago

2.1.2-beta.1

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

2.0.0-beta.13

4 years ago

1.0.27

4 years ago

2.0.0-beta.12

4 years ago

2.0.0-beta.11

4 years ago

2.0.0-beta.10

4 years ago

2.0.0-beta.9

4 years ago

2.0.0-beta.8

4 years ago

2.0.0-beta.7

4 years ago

2.0.0-beta.6

4 years ago

2.0.0-beta.5

4 years ago

2.0.0-beta.4

4 years ago

2.0.0-beta.3

4 years ago

2.0.0-beta.2

4 years ago

1.0.27-alpha.1

4 years ago

2.0.0-beta.1

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.22

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago