Skip to content

Commit

Permalink
Merge pull request #19 from jackkjhsu/master
Browse files Browse the repository at this point in the history
Minor changes to improve API usability and error handling.
  • Loading branch information
lekoala authored Dec 11, 2024
2 parents 8394649 + 36a9e7c commit d7e2109
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 76 deletions.
2 changes: 1 addition & 1 deletion dist/data-grid.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/data-grid.css.map

Large diffs are not rendered by default.

73 changes: 48 additions & 25 deletions dist/data-grid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/data-grid.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/data-grid.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/data-grid.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "data-grid-component",
"version": "2.0.10",
"version": "2.0.11",
"description": "Standalone data grid web component",
"type": "module",
"main": "data-grid",
"scripts": {
"test": "ava",
"build-min": "esbuild --bundle --minify --loader:.css=text --loader:.html=text --sourcemap --format=esm data-grid.js --outfile=dist/data-grid.min.js",
"build-dev": "esbuild --bundle --loader:.css=text --loader:.html=text --sourcemap --format=esm data-grid.js --outfile=dist/data-grid.js --banner:js=\"/*** Data Grid Web Component v2.0.10 * https://github.com/lekoala/data-grid ***/\"",
"build-dev": "esbuild --bundle --loader:.css=text --loader:.html=text --sourcemap --format=esm data-grid.js --outfile=dist/data-grid.js --banner:js=\"/*** Data Grid Web Component v2.0.11 * https://github.com/lekoala/data-grid ***/\"",
"build": "npm run build-min && npm run build-dev",
"start": "npm run build-dev -- --servedir=.",
"watch": "npm run build-dev -- --watch",
Expand Down
26 changes: 14 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ You can also pass them as a json string in data-config.
| spinnerClass | <code>String</code> | Sets a space-delimited string of css classes for a spinner |
| filterKeypressDelay | <code>Number</code> | Sets a keypress delay time in milliseconds before triggering filter operation. |
| saveState | <code>Boolean</code> | Enable/disable save state plugin (SaveState module) |
| errorMessage | <code>String</code> | A generic text to be displayed in footer when error occurs. |

<a name="Column"></a>

Expand Down Expand Up @@ -337,18 +338,19 @@ You can check `demo-server.html` to get a sample usage with saving functionnalit

## Events

| Name | Trigger |
|----------------------|------------------------------------------|
| **edit** | A row is edited |
| **action** | An action is performed |
| **connected** | The grid is connected |
| **disconnected** | The grid is disconnected |
| **columnResized** | A column is resized |
| **columnVisibility** | A column is hidden/shown |
| **columnReordered** | A column is dragged |
| **rowsSelected** | Any or all rows are selected |
| **headerRendered** | Column header (thead) render is complete |
| **bodyRendered** | Table body (tbody) render is complete |
| Name | Trigger |
|----------------------|------------------------------------------------------------|
| **edit** | A row is edited |
| **action** | An action is performed |
| **connected** | The grid is connected |
| **disconnected** | The grid is disconnected |
| **columnResized** | A column is resized |
| **columnVisibility** | A column is hidden/shown |
| **columnReordered** | A column is dragged |
| **rowsSelected** | Any or all rows are selected |
| **headerRendered** | Column header (thead) render is complete |
| **bodyRendered** | Table body (tbody) render is complete |
| **loadDataFailed** | loadData method catches error when options.server === true |

## Server

Expand Down
2 changes: 1 addition & 1 deletion scss/_core.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Data Grid Web Component v2.0.10
* Data Grid Web Component v2.0.11
* https://github.com/lekoala/data-grid
*/

Expand Down
Loading

0 comments on commit d7e2109

Please sign in to comment.