knockout.js - Does Knockout have a separator template? -
when binding this:
<div data-bind='template: { name: "persontemplate", foreach: someobservablearrayofpeople }'> </div>
is possible specify sort of separator template, similar separator template in classic asp.net?
there not way specify separator template.
however, think there few options:
- include content in "persontemplate"
- use wrapper template renders persontemplate , separatortemplate , point template binding (that way reuse separator template, if necessary)
- use afterrender option of template binding insert content.
Comments
Post a Comment