Skip to content

Added several practical methods #165

@wf58585858

Description

@wf58585858
		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);
		};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions