-
Notifications
You must be signed in to change notification settings - Fork 273
feat(ui5-table-group-row): introduce new component #3470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a sample in the Table.sample.html
Add TableGroupRow to the appenddocs tag in Table.js
packages/main/src/TableGroupRow.js
Outdated
* Defines the mode of the row (None, SingleSelect, MultiSelect). | ||
* @type {TableMode} | ||
* @defaultvalue "None" | ||
* @since 1.0.0-rc.15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No since tag is needed here as the whole component is available since this version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* @author SAP SE | ||
* @alias sap.ui.webcomponents.main.TableGroupRow | ||
* @extends sap.ui.webcomponents.base.UI5Element | ||
* @tagname ui5-table-group-row |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the since tag here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.0.0-rc.15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
.ui5-table-group-row-root:focus { | ||
outline: var(--ui5_table_row_outline_width) dotted var(--sapContent_FocusColor); | ||
outline-offset: -0.0625rem; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
packages/main/src/TableGroupRow.js
Outdated
* <br> | ||
* The <code>ui5-table-group-row</code> exposes the following CSS Shadow Parts: | ||
* <ul> | ||
* <li>group-row - Used to style the native <code>tr</code> element</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
packages/main/src/TableGroupRow.js
Outdated
* <br> | ||
* The <code>ui5-table-group-row</code> exposes the following CSS Shadow Parts: | ||
* <ul> | ||
* <li>group-row - Used to style the native <code>tr</code> element</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Both were added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of small things left
* @author SAP SE | ||
* @alias sap.ui.webcomponents.main.TableGroupRow | ||
* @extends sap.ui.webcomponents.base.UI5Element | ||
* @tagname ui5-table-group-row |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.0.0-rc.15
|
||
<ui5-table-group-row>Country: Bulgaria</ui5-table-group-row> | ||
|
||
<ui5-table-row data-city="Sofia"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-city
attribute is not needed anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
<ui5-table-group-row>Country: Bulgaria</ui5-table-group-row> | ||
|
||
<ui5-table-row data-city="Sofia"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
}, | ||
}, | ||
properties: /** @lends sap.ui.webcomponents.main.TableGroupRow.prototype */ { | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the GroupRow support selection modes? If not probably you can remove this prop.
Or it's done because of the code in Table.js
449: row.mode = this.mode;
Assigning the rows' "mode" field by the Table should not fail if the GroupRow does not have mode. And furthermore, it won't be re-rendered when the selection mode is change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mode is needed as we need to know the exact number of columns, which is +1 in case of multi select mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you need it, then it's fine, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In TableGrouping.html
there are a couple more occurrences of data-city
attribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, when someone from @SAP/ui5-webcomponents-topic-rl approves, we can merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
The new type of row represents group header row which can be used in case a grouping in the table is required.
Fixes #3319