Maslosoft Binder Logo Maslosoft Binder Documentation
Knockout JS tracker and binding handlers with coffee and sugar


Hidden binding handler is opposite to built into knockout JS visible binding. This will hide element when value evaluates to true.

Hidden if checked
Visible if checked

Relevant code used in examples:

		<input type="checkbox" data-bind="checked:, checkedValue: true, uncheckValue: false" value="0" />
		Check to show
	<br />
	<div data-bind="hidden:">Hidden if checked</div>
	<div data-bind="visible:">Visible if checked</div>

	window.onload = (function(){­
		binder.model.Hidden = new Maslosoft.Koe.Hidden({­show: true­});
		ko.applyBindings({­model: binder.model­}, document.getElementById('ko-binder'));