We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
isEnabled
The ListItem used in dropdowns doesn't support enabling/disabling it.
ListItem
I think that one could set some list items as disabled especially if one is creating dropdown with multiple commands as items:
const command = editor.commands.get( commandName ); const itemModel = new Model( { commandName, label } ); itemModel.bind( 'isEnabled' ).to( command ); dropdownItems.add( itemModel ); addListToDropdown( dropdownView, dropdownItems );
Setting isEnabled to false should gray-out the item.
false
The text was updated successfully, but these errors were encountered:
I guess this issue is required by https://github.com/ckeditor/ckeditor5-table/issues/1?
Sorry, something went wrong.
Yes.
Merge pull request #390 from ckeditor/t/389
76a4d47
Other: Disabling a `ListItemView` should be possible using the `isEnabled` property. Closes #389.
Merge pull request #171 from ckeditor/t/ckeditor5-ui/389
b4a069c
Other: Introduced disabled styles of a list item (see ckeditor/ckeditor5-ui#389).
jodator
Successfully merging a pull request may close this issue.
The
ListItem
used in dropdowns doesn't support enabling/disabling it.I think that one could set some list items as disabled especially if one is creating dropdown with multiple commands as items:
Setting
isEnabled
tofalse
should gray-out the item.The text was updated successfully, but these errors were encountered: