Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dropdown] actionable item + callback #1847

Closed
jamessampford opened this issue Jan 20, 2021 · 0 comments
Closed

[dropdown] actionable item + callback #1847

jamessampford opened this issue Jan 20, 2021 · 0 comments
Labels
type/feat Any feature requests or improvements
Milestone

Comments

@jamessampford
Copy link
Contributor

Allow a dropdown to have an actionable item, this is, doesn't get chosen as the value - by this, imagine having a dropdown where at first there is no data, however you could append an actionable item in the list, which when selected could launch a model to create a new record and the developer could add it to the dropdown before/after the actionable item as the selected item

For example, the actionable item is called "+New"
<div class="item actionable" data-value="new">+New</div>
Clicking/Picking this item fires off a callback, possibly with the data-value and text of the item (dropdown value+text remains at existing value)

$('.ui.dropdown').dropdown({
    onActionable: function(value, text, $selected){
        ....
    }
});
@jamessampford jamessampford added state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/feat Any feature requests or improvements labels Jan 20, 2021
@lubber-de lubber-de added state/has-pr An issue which has a related PR open and removed state/awaiting-triage Any issues or pull requests which haven't yet been triaged labels Feb 18, 2021
@lubber-de lubber-de added tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build and removed state/has-pr An issue which has a related PR open labels Oct 8, 2021
@lubber-de lubber-de added this to the 2.9.0 milestone Oct 8, 2021
@lubber-de lubber-de removed the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feat Any feature requests or improvements
Projects
None yet
Development

No branches or pull requests

2 participants