knockout-classBindingProvider
knockout-classBindingProvider copied to clipboard
An alternate binding provider for Knockout that allows you to define your bindings in a JavaScript object and key into it from the markup.
Hi ryan, I absolutely love this plugin and currently using it in developing a library for components. However, I had to override to component binding handler in order to register...
Next solution works well: ``` function findProperty(object, regex) { for(var key in object){ if (regex.test(object[key])){ return key; } } } function findInSingleLine(source, regex){ return [].slice.call(String(source).split('\n').join(' ').match(regex) || []); } //...
I notice that the **context** parameter in the binding function has no **$element** property listed among the other properties like $data, $parent, etc. Is it possible to reference the DOM...
Hi, In our code we use bindingClassProvider extensively and in some scenerios we choose to dynamically return based upon the viewModel example: ``` binding: function () { if (this.hover()) {...
I extended the `getBindings` method to call a `getCleanPrefix` function that recurses up the DOM tree looking for nodes with a `data-class-prefix` attribute and returning the complete prefix once it...