switchery icon indicating copy to clipboard operation
switchery copied to clipboard

Added several practical methods

Open wf58585858 opened this issue 6 years ago • 0 comments

		Switchery.prototype.check = function () {
			this.setStatus(true);
		};

		Switchery.prototype.uncheck = function () {
			this.setStatus(false);
		};

		Switchery.prototype.toggleStatus = function () {
			this.setStatus(this.isChecked());
		};

		Switchery.prototype.setStatus = function (status) {
			this.element.checked = !!status;
			this.setPosition(true);
		};

wf58585858 avatar Jul 27 '18 03:07 wf58585858