Add the Dropdown Input widget (#168)

Fixes #135.

* Add the Dropdown Input widget

* Fix font loading race condition
This commit is contained in:
Keavon Chambers
2021-06-06 02:17:36 -07:00
committed by GitHub
parent eae2d70e93
commit 91303459a9
10 changed files with 339 additions and 46 deletions
@@ -5,7 +5,15 @@
<Icon :icon="entry.icon" v-if="entry.icon" />
<span v-if="entry.label">{{ entry.label }}</span>
</div>
<MenuList :menuEntries="entry.children" :direction="MenuDirection.Bottom" :ref="(ref) => setEntryRefs(entry, ref)" />
<MenuList
:ourEntry="entry"
:menuEntries="entry.children"
:direction="MenuDirection.Bottom"
:minWidth="240"
:drawIcon="true"
:defaultAction="actionNotImplemented"
:ref="(ref) => setEntryRefs(entry, ref)"
/>
</div>
</div>
</template>
@@ -140,6 +148,9 @@ export default defineComponent({
if (menuEntry.ref) menuEntry.ref.setOpen();
else throw new Error("The menu bar floating menu has no associated ref");
},
actionNotImplemented() {
alert("This action is not yet implemented");
},
},
data() {
return {