Skip to content

Add Dropdown support#33

Merged
licatajustin merged 2 commits intomasterfrom
feature/dropdown-js
Jul 13, 2018
Merged

Add Dropdown support#33
licatajustin merged 2 commits intomasterfrom
feature/dropdown-js

Conversation

@licatajustin
Copy link
Copy Markdown
Contributor

@licatajustin licatajustin commented Jul 11, 2018

Addresses #34.

Dropdown support is 100% data-attribute driven and is based on the same HTML implementation of Bootstrap dropdowns.

<div class="dropdown">
  <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropdown button
  </button>
  <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
    <a class="dropdown-item" href="#">Action</a>
    <a class="dropdown-item" href="#">Another action</a>
    <a class="dropdown-item" href="#">Something else here</a>
  </div>
</div>

Copy link
Copy Markdown
Contributor

@afomera afomera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as intended. Tested on my apps with jQuery, and Turbolinks 5.

@licatajustin licatajustin merged commit 1a64d11 into master Jul 13, 2018
@licatajustin licatajustin deleted the feature/dropdown-js branch July 13, 2018 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants