Migrating Dropdowns from Semantic UI

In this document we'll be using SUI for ng2-semantic-ui and Bootstrap for ng-bootstrap.

See the SUI dropdown specs for more info.

SUI dropdowns follow this structure:

   <div class="ui dropdown" suiDropdown>
    ...
    <i class="dropdown icon"></i>
    <div class="menu" suiDropdownMenu>
        <button class="item"> ... </button>
        <button class="item">
            <span class="description"> ... </span>
            ...
        </button>
        <div class="divider"></div>
        <button class="item"> ... </button>
        ...
    </div>
</div>

Notes

The equivalent Boostrap component is based on ngbDropdown and ngbDropdownMenu. (See the specs for more info.)

<div class="tab-head" ngbDropdown>
    <a ngbDropdownToggle> ... </a>
    <div ngbDropdownMenu>
        <a ngbDropdownItem> ... </a>
        <a ngbDropdownItem> ... </a>
        <div class="dropdown-divider"></div>
        <a ngbDropdownItem> ... </a>
        ...
    </div>

Notes