Semantic-ui: [Dropdown] Add button-like attached variations

Created on 25 Apr 2017  路  5Comments  路  Source: Semantic-Org/Semantic-UI

I use semantic-ui-react.
My issue: attached button and dropdown.
Button has attach prop, Dropdown hasn't.

        <div>
          <DropdownSearch attached="left" {...getProps(7)} placeholder="袥懈褑械胁芯泄 褋褔械褌"/>
          <Button attached="right" primary>New Next</Button>
        </div>
Enhancement stale

Most helpful comment

@a-x- I built an attached dropdown version (vertical only) some time ago: https://github.com/Semantic-Org/Semantic-UI/pull/3542

All 5 comments

Can you create universal Group component for any components grouping?

I could definitely use this. There is extra functionality that I would like to add to a dropdown (options like "Exclude all", "Select All", etc.) and an attached button makes sense for something like this.

@a-x- I built an attached dropdown version (vertical only) some time ago: https://github.com/Semantic-Org/Semantic-UI/pull/3542

I was able to do it using ui fluid action input and adding input do the dropdown div like this:

<div class="ui fluid action input">
    <div class="ui multiple search selection input dropdown" 
         style="border-top-right-radius: 0px; border-bottom-right-radius: 0px;">
        <input value="default" type="hidden" />
        <i class="dropdown icon"></i>
        <div class="default text"></div>
        <div class="menu">
            <div class="item"></div>
        </div>
    </div>
    <button id="selectallbutton" class="ui basic blue right icon button" 
            onclick="$( this ).toggleClass( 'basic' );"             
            data-tooltip="Select All">
        <i class="asterisk icon"></i>
    </button>
    <button id="excludeselectedbutton" class="ui basic red right icon button" 
            onclick="$( this ).toggleClass( 'basic' );"
            data-tooltip="Exclude Selected">
        <i class="ban icon"></i>
    </button>
</div>

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

guilhermeblanco picture guilhermeblanco  路  3Comments

davialexandre picture davialexandre  路  3Comments

sarbona picture sarbona  路  3Comments

Morrolan picture Morrolan  路  3Comments