knockout.js - Wiring Bootstrap-switch to knockout observable -
I'm looking at this example to wire the occurrence of a bootstrap button. I am having trouble with the fact that how do I add it to some other knockout.
I have a noticeable
self.IsAggregate = ko.observable (modeldata.SelectedItem.Aggregate); There is a default value on the load, I'm trying to wire it in the switch. I can not even understand the syntax in the belt.
How are they defining a : for observation and not a = ? When I try this, a syntax throws error. Eventually I am trying to replace the IsAggregate
with compulsive < / P> // Registration switch $ ("[name = 'toggle list']"). Bootstrap switch (); $ ("[Name = 'toggleAggregate']") bootstrapSwitch () .; Var viewloadel = function (modal data) {var itself = this; Self. To = to Spectacular (true), self Selected = K. orssabel (ModelData selected) list; Igragget = to.SourceWeble (ModelData selected item. Argentina); Self-enabled. = HorseBel (Mod.Data selected item. Enabled); Self. Indexation configuration = Co.obsbsel array ([]); Self.ColumnDropdown = ko.observableArray ([]); }; $ (Document) .ready (function () {var model = new view modell ();};
Comments
Post a Comment