Skip to content

makeBindingHandlerValidatable to accept property name #562

@mcshaz

Description

@mcshaz

ko.validation.makeBindingHandlerValidatable only takes a single argument, which does not work for widget extension libraries which provided an argument list as properties of an object.

as 1 of hundreds of simple examples, the syntax for the knockout-jqueryUI project (on github) inline datepicker is:

<div data-bind="datepicker: { value: value2 }"></div>

A very simple fix (pull request associated with this enhancement request) can remedy this with the function call:
ko.validation.makeBindingHandlerValidatable('datepicker', 'value')
without breaking the existing functionality.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions