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

Support for disabling dropdown item(s). #874

Closed
jelche opened this issue May 2, 2019 · 1 comment
Closed

Support for disabling dropdown item(s). #874

jelche opened this issue May 2, 2019 · 1 comment
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@jelche
Copy link
Contributor

jelche commented May 2, 2019

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Request the ability to identify option items in the Dropdown component that are marked as disabled. Expected behavior is that the disabled items will render in the list but user is not able to select the item.

  • Browser: [all]

  • Language: [all]

@mertsincan mertsincan self-assigned this May 21, 2019
@mertsincan mertsincan added the Type: New Feature Issue contains a new feature or new component request label May 21, 2019
@mertsincan mertsincan added this to the 3.1.4 milestone May 21, 2019
@mertsincan
Copy link
Member

Added disabled options to SelectItemAPI. Please try;

const cars = [
            {label: 'Audi', value: 'Audi', disabled: true},
            {label: 'BMW', value: 'BMW'},
            {label: 'Fiat', value: 'Fiat'},
            {label: 'Honda', value: 'Honda', disabled: true},
            {label: 'Jaguar', value: 'Jaguar'},
            {label: 'Mercedes', value: 'Mercedes'},
            {label: 'Renault', value: 'Renault'},
            {label: 'VW', value: 'VW'},
            {label: 'Volvo', value: 'Volvo'}
        ];

<Dropdown options={cars} ... />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants