File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
core/src/components/Dropdown
obc/src/components/tables/TopicsList Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff 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.
190195const topicsModal = BUI . Component . create < HTMLDialogElement > ( ( ) => {
191196 return BUI . html `
You can’t perform that action at this time.
0 commit comments