-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stark-ui): add rowClick event emitter to table component
- added event emitter to handle a row click - set default row click to selecting the row - fixed selecting rows - fixed action buttons propagation - added hover styling to rows - added test for row click - added example to demo page - fixed issue with double scrollbar - fixed issue with extra padding - added demo for table with selection - added test for selection in table - changed type of rows from any to object ISSUES CLOSED: #795
- Loading branch information
1 parent
110901b
commit 0182344
Showing
35 changed files
with
544 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,6 @@ body { | |
-webkit-overflow-scrolling: touch; | ||
& > ui-view { | ||
flex: 1 0 auto; | ||
padding: 16px; | ||
} | ||
} | ||
} | ||
|
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
19 changes: 19 additions & 0 deletions
19
packages/stark-ui/src/modules/table/components/_table-theme.scss
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,19 @@ | ||
/* ============================================================================== */ | ||
/* S t a r k A p p T a b l e */ | ||
/* ============================================================================== */ | ||
/* stark-ui: src/modules/app-menu/components/_table-theme.scss */ | ||
|
||
.stark-table { | ||
tr { | ||
&:hover td { | ||
background-color: mat-color($grey-palette, 100); | ||
} | ||
|
||
&.selected td { | ||
background-color: mat-color($accent-palette, 100); | ||
color: mat-contrast($accent-palette, 100); | ||
} | ||
} | ||
} | ||
|
||
/* END stark-ui: src/modules/app-menu/components/_table-theme.scss */ |
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
Oops, something went wrong.