knockout-classBindingProvider
knockout-classBindingProvider copied to clipboard
Missing $element Binding
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 element another way?
var bindings = { question: function (context, classes) { --- I want to set the ko.css binding on the DOM element but there is no context.$element --- } }
This library has been a Godsend in a project I've been working on so thank you.
bump. I'm in need of a way to access the element to which a data-class is applied.