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
It would be a nice feature if I could skip some elements on binding collection:
itemsControllerCollection.bind( modelItems ).as( ( modelItem ) => { if ( modelItem.hidden ) { return null; } else { const itemView = new ItemView( editor.locale ); return new Controller( modelItem, itemView ); } } );
It should be doable, even with a nice position mapping.
The text was updated successfully, but these errors were encountered:
During moving collection binding from the CollectionController to the ViewCollection this functionality has been removed.
CollectionController
ViewCollection
Sorry, something went wrong.
Of course the sample code now should looks like:
viewCollection.bindTo( modelItems ).as( ( modelItem ) => { if ( modelItem.hidden ) { return null; } else { return new ItemView( editor.locale ); } } );
A related issue https://github.com/ckeditor/ckeditor5-ui/issues/98.
Also related: https://github.com/ckeditor/ckeditor5-utils/issues/125
Merge pull request #216 from ckeditor/t/215
6e0d063
Feature: Introduced skipping items when binding collections. Closes #215. Closes https://github.com/ckeditor/ckeditor5-ui/issues/92.
Successfully merging a pull request may close this issue.
It would be a nice feature if I could skip some elements on binding collection:
It should be doable, even with a nice position mapping.
The text was updated successfully, but these errors were encountered: