Skip to content

Missing $element Binding #26

@Wulfilas

Description

@Wulfilas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions