-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-timeline-group-item): introduce new component (#9407)
Introducing the new `<ui5-timeline-group-item>` web component. It allows the application developers to group a `<ui5-timeline-item>`'s under one name, specified by the `groupName` property. Mixed scenarios are possible, between `<ui5-timeline-item>`'s and `<ui5-timeline-group-item>`'s, where they are on the same level in the DOM. Sample usage of groups in **mixed** scenarios could be: ```html <ui5-timeline id="verticalWithGrps"> <ui5-timeline-item></ui5-timeline-item> <ui5-timeline-item></ui5-timeline-item> /* Items in a group */ <ui5-timeline-group-item group-name="Events"> <ui5-timeline-item>Morning event</ui5-timeline-item> <ui5-timeline-item> <ui5-avatar initials="SK"></ui5-avatar> <ui5-label>Good morning</ui5-label> </ui5-timeline-item> <ui5-timeline-item><ui5-avatar initials="SK"></ui5-avatar></ui5-timeline-item> </ui5-timeline-group-item> <ui5-timeline-item></ui5-timeline-item> <ui5-timeline-item></ui5-timeline-item> </ui5-timeline> ``` ### Vertical layout ![2024-07-22_09-36-41](https://github.com/user-attachments/assets/af7ac9ee-4465-4be5-ab8f-d42d163b9ad5) ### Horizontal layout ![2024-07-22_09-43-54](https://github.com/user-attachments/assets/f6c767d3-d1c6-40fb-b5e0-e05a028c4286)
- Loading branch information
Showing
34 changed files
with
1,132 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="ui5-tlgi-root"> | ||
<div class="ui5-tlgi-btn-root"> | ||
<div class="ui5-tlgi-icon-placeholder"> | ||
<div class="ui5-tlgi-icon-dot"></div> | ||
</div> | ||
|
||
<div class="ui5-tlgi-line-placeholder"> | ||
<div class="ui5-tlgi-line"></div> | ||
</div> | ||
|
||
<ui5-toggle-button | ||
icon="{{_groupItemIcon}}" | ||
@click="{{onGroupItemClick}}" | ||
class="ui5-tlgi-btn" | ||
.pressed="{{collapsed}}" | ||
>{{groupName}}</ui5-toggle-button> | ||
</div> | ||
<ul class="ui5-tl-group-item"> | ||
{{#each items}} | ||
<li class="ui5-timeline-group-list-item"> | ||
<slot name="{{this._individualSlot}}"></slot> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> |
Oops, something went wrong.