Split button #2488
Unanswered
NLSurfMan
asked this question in
Feature Requests
Split button
#2488
Replies: 1 comment 2 replies
-
|
EDIT: i'm using the same code as you but it renders nicely, what don't you like about it? Here's an example code from my project: <flux:button.group>
<flux:button variant="primary" icon="arrow-down-tray" href="#" target="_blank">
{{ __('Download Translation') }}
</flux:button>
<flux:dropdown position="bottom" align="end">
<flux:button variant="primary" icon="chevron-down"></flux:button>
<flux:menu>
<flux:menu.item icon="arrow-down-tray" href="#" target="_blank">
{{ __('Untranslated File') }}
</flux:menu.item>
<flux:menu.item icon="arrow-down-tray" href="#" target="_blank">
{{ __('Untranslated OCR PDF') }}
</flux:menu.item>
</flux:menu>
</flux:dropdown>
</flux:button.group> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My aim is to get a split button: a button with a default action, and should you want something more complicated, use a dropdown for more options.
I've tried emulating one using a
flux:buttonin combination with aflux:dropdown(see example below), but it's not pretty:Would it be possible to have a split button that looks as awesome as the original button? Something like this (pseudocode)?
Beta Was this translation helpful? Give feedback.
All reactions