UUI/UMB Dropdown button ?
# package-development
k
Quick sanity check, i might be UUI blind. is there anything equvialnt to a button with dropdown elements in the existing UI / CMS UI libraries ? or is it a case of rolling your own with button-grroups, buttons and dropdowns ?
w
Look at the publish one ?
n
That one might be different.. but see the Actions Menu example on the Document Workspace. 🙂 I think its your own composition, so you have the ability to control what the button is and what goes into the popover. I think there is also a native-styled select input component, if your looking for just that.
k
yeah looking at tthe publish one - its .... not simple. 🙂 .
think i've cleared some of the fog and I'm getting there now...
Copy code
ts
return html`
    <uui-button popovertarget=${popoverId}
        color=${<UUIInterfaceColor>parent?.color}
        look=${<UUIInterfaceLook>parent?.look}
        compact>
        <uui-symbol-expand id="expand-symbol" .open=${this._popoverOpen}></uui-symbol-expand>
    </uui-button>

    <uui-popover-container
        id=${popoverId}
        margin="6"
        placement="bottom-end"
        @toggle=${this.#onPopoverToggle}>
        <umb-popover-layout>
            <uui-scroll-container>
                ${buttons}
            </uui-scroll-container>
        </umb-popover-layout>

    </uui-popover-container>
`;
49 Views