Skip to content

civicsource/knockout-responsive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knockout Responsive Binding

Knockout binding to conditionally hide/show content depending on the width of the window.

Install with Bower

bower install knockout-responsive

Then add knockout.responsive.js to your project.

How to Use

Include the script on your page (either via a normal script tag or via an AMD loader). Then use it like so:

<div data-bind="ifWindowGreaterThan: 500">big stuff</div>
<div data-bind="ifWindowLessThan: 500">small stuff</div>

About

Knockout binding to conditionally hide/show content depending on the width of the window

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors