Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

README.md

Hidden binding for knockout

Build status

Usage

HTML

<input data-bind="hidden: myobs" >

JS

ko.applyBindings({
    myobs : ko.observable()
});

This binding is written in AMD. It returns the binding object. It will attach itself to knockout.bindingHandlers.hidden once required for the first time. This can be overridden with a config section in your requirejs config like shown below.

requirejs.config({
    config: {
        'bower_components/knockout.bindingHandlers.hidden/src/hidden': {
            name: 'someOtherName'
    }
});

Behaviour

This is just an inverted behaviour to the official visible binding

Dependencies

  • knockout

For accurate versions check bower.json

Contributing

Clone, then run (assuming you have node)

npm install & bower install

You can now use grunt develop for a ready made watch task for development. Tests, linting..

grunt develop
Something went wrong with that request. Please try again.