This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
forked from Jbcampbe/genesys-webcomponents
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(table component): row selection implementation
re #6
- Loading branch information
Showing
8 changed files
with
206 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/components/beta/gux-table/gux-row-select/gux-row-select.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component, h, Event, EventEmitter } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'gux-row-select' | ||
}) | ||
export class GuxRowSelect { | ||
@Event() | ||
selectRow: EventEmitter; | ||
|
||
private handlerCheck(): void { | ||
this.selectRow.emit(); | ||
} | ||
|
||
render() { | ||
return <gux-checkbox onCheck={this.handlerCheck.bind(this)}></gux-checkbox>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# gux-row-select | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
## Events | ||
|
||
| Event | Description | Type | | ||
| ----------- | ----------- | ------------------ | | ||
| `selectRow` | | `CustomEvent<any>` | | ||
|
||
|
||
## Dependencies | ||
|
||
### Depends on | ||
|
||
- [gux-checkbox](../../../stable/gux-checkbox) | ||
|
||
### Graph | ||
```mermaid | ||
graph TD; | ||
gux-row-select --> gux-checkbox | ||
style gux-row-select fill:#f9f,stroke:#333,stroke-width:4px | ||
``` | ||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters