Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing $element Binding #26

Open
Wulfilas opened this issue Apr 17, 2017 · 1 comment
Open

Missing $element Binding #26

Wulfilas opened this issue Apr 17, 2017 · 1 comment

Comments

@Wulfilas
Copy link

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.

@mrkos67
Copy link

mrkos67 commented Apr 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants