Example #1
0
	protected renderTextarea(el: JQuery) {
		// Watch checkbox state
		const property = bindProp(this.getElement("checkbox"), "checked");

		// Bind text area state to property
		bindProp(el, "disabled", property);
	}
Example #2
0
	protected renderRect(el: JQuery) {
		// Watch checkbox state
		const checked = bindProp(this.getElement("checkbox"), "checked");

		// Bind "checked" CSS class to checked property value
		bindClass(el, "checked", checked);
	}
Example #3
0
	protected renderRect(el: JQuery) {
		// Watch checkbox state
		const checked = bindProp(this.getElement("checkbox"), "checked");

		// Bind rectangle visibility to property value
		bindDisplay(el, checked);
	}