First commit
This commit is contained in:
37
application/elements/checkbox.js
Normal file
37
application/elements/checkbox.js
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
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 );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user