@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
14 lines (10 loc) • 373 B
JavaScript
import { TypeEditor } from "../TypeEditor.js";
import { CheckboxView } from "../../../../src/view/elements/CheckboxView.js";
export class ObservedBooleanEditor extends TypeEditor {
build(parent, field, registry) {
const ctrl = new CheckboxView({
value: field.adapter.read(parent, field.name)
});
return ctrl;
}
}