How to add divider inside SUI-dropdown with js-initialization?
up vote
0
down vote
favorite
I use semantic.ui as frontend-framework in one of my projects.
Is there a way to add a divider between a dropdown initialized like below?
In the docs there's no entry concerning my issue.
$('.ui.dropdown').dropdown({
values: [
{ name: 'Date asc', value: 'date' },
// here should be a divider
{ name: 'Date desc', value: '-date' }
]
});
For sure I could do some creepy DOM-injection afterwards but maybe there's a better straightforward way?
dropdown semantic-ui
add a comment |
up vote
0
down vote
favorite
I use semantic.ui as frontend-framework in one of my projects.
Is there a way to add a divider between a dropdown initialized like below?
In the docs there's no entry concerning my issue.
$('.ui.dropdown').dropdown({
values: [
{ name: 'Date asc', value: 'date' },
// here should be a divider
{ name: 'Date desc', value: '-date' }
]
});
For sure I could do some creepy DOM-injection afterwards but maybe there's a better straightforward way?
dropdown semantic-ui
could you show your html?
– Ray
Nov 9 at 12:44
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I use semantic.ui as frontend-framework in one of my projects.
Is there a way to add a divider between a dropdown initialized like below?
In the docs there's no entry concerning my issue.
$('.ui.dropdown').dropdown({
values: [
{ name: 'Date asc', value: 'date' },
// here should be a divider
{ name: 'Date desc', value: '-date' }
]
});
For sure I could do some creepy DOM-injection afterwards but maybe there's a better straightforward way?
dropdown semantic-ui
I use semantic.ui as frontend-framework in one of my projects.
Is there a way to add a divider between a dropdown initialized like below?
In the docs there's no entry concerning my issue.
$('.ui.dropdown').dropdown({
values: [
{ name: 'Date asc', value: 'date' },
// here should be a divider
{ name: 'Date desc', value: '-date' }
]
});
For sure I could do some creepy DOM-injection afterwards but maybe there's a better straightforward way?
dropdown semantic-ui
dropdown semantic-ui
asked Nov 9 at 8:51
Sascha Wie
235
235
could you show your html?
– Ray
Nov 9 at 12:44
add a comment |
could you show your html?
– Ray
Nov 9 at 12:44
could you show your html?
– Ray
Nov 9 at 12:44
could you show your html?
– Ray
Nov 9 at 12:44
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53222472%2fhow-to-add-divider-inside-sui-dropdown-with-js-initialization%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
could you show your html?
– Ray
Nov 9 at 12:44