knockout-classBindingProvider icon indicating copy to clipboard operation
knockout-classBindingProvider copied to clipboard

Missing $element Binding

Open Wulfilas opened this issue 7 years ago • 1 comments

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.

Wulfilas avatar Apr 17 '17 18:04 Wulfilas

bump. I'm in need of a way to access the element to which a data-class is applied.

mrkos67 avatar Apr 12 '18 14:04 mrkos67