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
Should following usecase work ?
{{#block-slot 'row' as |user|}} {{#packages/commons/grid/components/row/grid-row-cmp}} {{packages/commons/grid/components/column/string-column-body-cmp value=user.id}} {{packages/commons/grid/components/column/user-column-body-cmp user=user}} {{#yield-slot 'actions' (block-params user)}} {{yield}} {{/yield-slot}} {{/packages/commons/grid/components/row/grid-row-cmp}} {{/block-slot}}
All components in nesting chain has SlotsMixin applied. Yielded slot actions is not propagated upwards.
actions
The text was updated successfully, but these errors were encountered:
@janmisek does not work out of the box, the simplest solution is to make childViews know the slots of its parents
try to do something like
SlotsMixin.reopen({ didInsertElement() { this._super(...arguments); const parentWithSlots = this.nearestOfType(SlotsMixin); if (parentWithSlots) { get(this, '_slots').addObjects(get(parentWithSlots, '_slots')); } } });
Sorry, something went wrong.
Or what I found out to be working also is to place yield for block-slot itself Is it supported solution ?
yield
{{#block-slot 'row' as |user|}} {{!-- extra yield in block-slot --}} {{yield}} {{#packages/commons/grid/components/row/grid-row-cmp}} {{packages/commons/grid/components/column/string-column-body-cmp value=user.id}} {{packages/commons/grid/components/column/user-column-body-cmp user=user}} {{#yield-slot 'actions' (block-params user)}} {{yield}} {{/yield-slot}} {{/packages/commons/grid/components/row/grid-row-cmp}} {{/block-slot}}
No branches or pull requests
Should following usecase work ?
All components in nesting chain has SlotsMixin applied. Yielded slot
actions
is not propagated upwards.The text was updated successfully, but these errors were encountered: