Files
Unify/application/elements/checkbox.js

37 lines
505 B
JavaScript
Raw Normal View History

2025-12-25 11:16:59 +01:00
import document from '/unify/document.js';
export default class checkbox{
boxDisplay = "table-cell";
customElement = document.createElement("input");
autoUpdate = true;
inputType = "checkbox";
useCustomElement = true;
editable = true;
layers = 2;
parseChildren = false;
setType( type ) {
this.inputType = type;
}
setup() {
this.customElement.setAttribute( "value", this.id );
this.customElement.setAttribute( "type", this.inputType );
}
}