Skip to content

Commit 929b249

Browse files
feat: enhance search sample (#1)
1 parent f6e7abb commit 929b249

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

webapp/controller/App.controller.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ import "@ui5/webcomponents-icons/dist/da";
2929
import "@ui5/webcomponents-icons/dist/action-settings";
3030
import "@ui5/webcomponents-icons/dist/official-service";
3131
import "@ui5/webcomponents-icons/dist/message-information";
32+
import "@ui5/webcomponents-icons/dist/employee";
33+
import "@ui5/webcomponents-icons/dist/account";
34+
import "@ui5/webcomponents-icons/dist/customer-and-supplier";
35+
import "@ui5/webcomponents-icons/dist/sales-order";
3236
import "@ui5/webcomponents-icons/dist/palette";
3337

3438
/**

webapp/view/App.view.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,40 @@
3636
</webcf:content>
3737

3838
<webcf:searchField>
39-
<webcf:ShellBarSearch showClearIcon="true" placeholder="Search" />
39+
<webcf:ShellBarSearch showClearIcon="true" placeholder="Type 'A' to search" >
40+
<webcf:SearchItem text="Alain Chevalier" description="Employee | 1255656">
41+
<webcf:image>
42+
<webc:Avatar size="XS">
43+
<Image src="images/Avatar.svg" alt="Avatar" />
44+
</webc:Avatar>
45+
</webcf:image>
46+
</webcf:SearchItem>
47+
<webcf:SearchItem text="Alain's Digital Services" description="Account | 65656665">
48+
<webcf:image>
49+
<webc:Avatar size="XS" icon="customer-and-supplier" />
50+
</webcf:image>
51+
</webcf:SearchItem>
52+
<webcf:SearchItem text="Alain's Ventures" description="Account | 13456665">
53+
<webcf:image>
54+
<webc:Avatar size="XS" icon="customer-and-supplier" />
55+
</webcf:image>
56+
</webcf:SearchItem>
57+
<webcf:SearchItemGroup headerText="Sales Orders">
58+
<webcf:SearchItem text="15665566 - Media Alain Productions" description="Shipped | Ordered Items (15)">
59+
<webcf:image>
60+
<webc:Avatar size="XS" icon="sales-order" colorScheme="Accent9"/>
61+
</webcf:image>
62+
</webcf:SearchItem>
63+
<webcf:SearchItem text="46544665 - Media Alain Productions" description="Processing | Ordered Items (15)">
64+
<webcf:image>
65+
<webc:Avatar size="XS" icon="sales-order" colorScheme="Accent9"/>
66+
</webcf:image>
67+
</webcf:SearchItem>
68+
</webcf:SearchItemGroup>
69+
<webcf:action>
70+
<webc:Button id="searchButton" tooltip="Search" design="Transparent" text="Show all search results"></webc:Button>
71+
</webcf:action>
72+
</webcf:ShellBarSearch>
4073
</webcf:searchField>
4174

4275
<webcf:assistant>

0 commit comments

Comments
 (0)