Integrate the koGrid with the Durandal/HotTowel template

后端 未结 3 1327
青春惊慌失措
青春惊慌失措 2021-02-06 04:22

I work on an asp.net solution with the Durandal template.

I try to use the koGrid (https://github.com/Knockout-Contrib/KoGrid) which is compatible with knockout. When in

3条回答
  •  无人及你
    2021-02-06 04:47

    This update applies to Durandal 2.x

    Starting with Durandal 2.0, there is a way to specify bindings that should be deferred until the composition complete.

    For kogrid to work correctly, all that's needed is to execute this line of code as part of the Durandal framework initialization:

    composition.addBindingHandler('koGrid');
    

    The composition variable in this example is a reference to the Durandal composition module.

    See the documentation for more information: http://durandaljs.com/documentation/Interacting-with-the-DOM.html

提交回复
热议问题