You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here declarations are the list of PortalDeclaration collected. className is name of subclass of PortalDeclaration to filter by, itemIndex the # of the delcaration, and itemSubindex the index of the subclass of this.element presented by the PortalDeclaration instance.
In many situations, I'm hoping that this would eliminate the need for any render/... components. Of course, sometimes you might want them anyway (dynamic styling can't be guessed in declaration context perhaps?), but I think often they are just boiler plate.
I plan to try this out on a branch and use in ember-smenu ... if it looks good there we can try to re-base ember-grid on ember-declarative.
The text was updated successfully, but these errors were encountered:
I think there is an way to simplify "pulling" declarative content into implementation.
It should be able to change the RenderPortal component mixin into a helper:
Here
declarations
are the list ofPortalDeclaration
collected.className
is name of subclass ofPortalDeclaration
to filter by,itemIndex
the # of the delcaration, anditemSubindex
the index of the subclass ofthis.element
presented by thePortalDeclaration
instance.For nested declarations, this could be used as:
In many situations, I'm hoping that this would eliminate the need for any
render/...
components. Of course, sometimes you might want them anyway (dynamic styling can't be guessed in declaration context perhaps?), but I think often they are just boiler plate.I plan to try this out on a branch and use in
ember-smenu
... if it looks good there we can try to re-baseember-grid
onember-declarative
.The text was updated successfully, but these errors were encountered: