Skip to content

Commit a560090

Browse files
authored
docs(ui5-search): add sample for search item actions (#12655)
related to: #12405
1 parent e9fa794 commit a560090

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

packages/website/docs/_components_pages/fiori/Search/Search.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Advanced from "../../../_samples/fiori/Search/Advanced/Advanced.md";
77
import Byline from "../../../_samples/fiori/Search/Byline/Byline.md";
88
import AdvancedFilter from "../../../_samples/fiori/Search/AdvancedFilter/AdvancedFilter.md"
99
import ShowMore from "../../../_samples/fiori/Search/ShowMore/ShowMore.md"
10+
import Actions from "../../../_samples/fiori/Search/Actions/Actions.md"
1011

1112
<%COMPONENT_OVERVIEW%>
1213

@@ -39,3 +40,8 @@ This example shows how to use a Show More Item.
3940

4041
<ShowMore />
4142

43+
### Actions
44+
This example shows how to use a interactive elements in search items.
45+
46+
<Actions />
47+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import html from '!!raw-loader!./sample.html';
2+
import js from '!!raw-loader!./main.js';
3+
4+
<Editor html={html} js={js} />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import "@ui5/webcomponents-fiori/dist/Search.js";
2+
import "@ui5/webcomponents-icons/dist/share.js";
3+
import "@ui5/webcomponents-icons/dist/copy.js";
4+
import "@ui5/webcomponents-fiori/dist/SearchItem.js";
5+
import "@ui5/webcomponents-fiori/dist/SearchItemGroup.js";
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- playground-fold -->
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body style="background-color: var(--sapBackgroundColor); height: 350px">
10+
<!-- playground-fold-end -->
11+
<ui5-search id="actions-search" show-clear-icon>
12+
<ui5-search-item text="List Item with Multiple Actions" icon="globe" deletable>
13+
<ui5-button slot="actions" design="Transparent" icon="share" tooltip="Share"></ui5-button>
14+
<ui5-button slot="actions" design="Transparent" icon="copy" tooltip="Copy"></ui5-button>
15+
</ui5-search-item>
16+
</ui5-search>
17+
<!-- playground-fold -->
18+
<script type="module" src="main.js"></script>
19+
</body>
20+
</html>
21+
<!-- playground-fold-end -->

0 commit comments

Comments
 (0)