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

Feature Requests - Disabling and Classes #53

Closed
kmbicatl opened this issue Jun 9, 2015 · 3 comments
Closed

Feature Requests - Disabling and Classes #53

kmbicatl opened this issue Jun 9, 2015 · 3 comments

Comments

@kmbicatl
Copy link

kmbicatl commented Jun 9, 2015

Hi,

It would be nice if we can have option disabling feature. So that the option should not get highlighted nor selectable. If such feature is available, I would like to use it for Header option something equivalent like in a select box.

Also while declaring options, if you can provide addtional attributes to input class or style that would be a great help.

@jseppi jseppi changed the title Feature Request Feature Requests - Disabling and Classes Jun 10, 2015
@jseppi
Copy link
Owner

jseppi commented Jun 10, 2015

There is a way to make headers or divider labels currently. In the README see these examples:

...
        {
            // Any option with divider set to true will be a divider
            // in the menu and cannot be selected.
            divider: true
        },
        {
            // Any divider option with a 'text' property will
            // behave similarly to a divider and cannot be selected.
            divider: true,
            text: 'divider label'
        }
...

Also, any class specified on the original element will be present on the dropdown. The example below will have my-class my-other-class on the dropdown element:

    <div class="my-class my-other-class"
        dropdown-select="ddSelectOptions"
        dropdown-model="ddSelectSelected"
        dropdown-item-label="text" >
    </div>

In general, it is very helpful to project maintainers if you use descriptive issue titles instead of generic ones. This helps us quickly glance over our lists of issues and know what they are about. Thanks.

@jseppi jseppi closed this as completed Jun 10, 2015
@kmbicatl
Copy link
Author

Thank you james. This helped me a lot and I will do more specific about my issue titles next time onwards.

Thanks again!
Sridhar Gudimela

@jseppi
Copy link
Owner

jseppi commented Jun 11, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants