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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -