faulknercs / Knockstrap

Knockout bindings to twitter bootstrap 3
faulknercs.github.io/Knockstrap/
MIT License
142 stars 37 forks source link

How to use afterRender in templateOptions in Popover? #70

Closed Le-Sy-Hoang closed 3 years ago

Le-Sy-Hoang commented 3 years ago

I'm struggling to make use of templateOptions, particularly afterRender callback. Can you update your examples to include a demo for templateOptions?

faulknercs commented 3 years ago

Hello!

You can pass templateOptions alongside the template property to the popover binding. Please, see this example: https://jsfiddle.net/faulknercs/7Le6noj8/

Also please note that templateOptions is used only if you're using some template for popover.

Le-Sy-Hoang commented 3 years ago

Thank you, @faulknercs