Skip to content

Commit 96dec72

Browse files
committed
chore: dropdown example updates
1 parent f3a9c62 commit 96dec72

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/core/src/components/Dropdown/example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
<body>
3030
<div style="display: flex; flex-direction: column; gap: 0.35rem; width: 15rem;">
31-
<bim-dropdown id="my-dropdown-1" label="IFC Entity" multiple>
32-
<bim-option label="IfcWindow" checked></bim-option>
31+
<bim-dropdown id="my-dropdown-1" label="IFC Entity" multiple icon="iconamoon:home-fill">
32+
<bim-option label-hidden label="IfcWindow" checked icon="iconamoon:home-fill"></bim-option>
3333
<bim-option label="IfcWall"></bim-option>
3434
<bim-option label="IfcSlab"></bim-option>
3535
</bim-dropdown>
@@ -39,7 +39,7 @@
3939
<bim-dropdown label="Vertical Layout" vertical>
4040
<bim-option label="IfcSlab"></bim-option>
4141
</bim-dropdown>
42-
<bim-dropdown id="my-dropdown-2" required></bim-dropdown>
42+
<bim-dropdown id="my-dropdown-2" required search-box></bim-dropdown>
4343
</div>
4444
<script type="module" src="./example.ts"></script>
4545
</body>

packages/obc/src/components/tables/TopicsList/example.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ const [topicForm, updateTopicForm] = CUI.forms.topic({
186186
styles: { users },
187187
});
188188

189+
// Optionally, you can activate the dropdown searchbox for the
190+
// assignee input in case you have too many users in your app.
191+
const assigneeDropdown = topicForm.querySelector<BUI.Dropdown>("bim-dropdown[name='assignedTo']")
192+
if (assigneeDropdown) assigneeDropdown.searchBox = true
193+
189194
// We won't add the form directly to the page, but will wrap it inside a dialog element to show it as a modal.
190195
const topicsModal = BUI.Component.create<HTMLDialogElement>(() => {
191196
return BUI.html`

0 commit comments

Comments
 (0)