Object property requires its definition here, to be presented in DORF form. Stores key-value pairs, where key is the property name on Object.
Indicates a DorfObject
instance. Needed by decorators.
Allows changing the definition later, e.g. inside the form component. Support is very limited here. For now it is allowed only for DorfChooseDefinition - for its async options.
property name on Object, key in PropertiesToDorfDefinitionsMap
new definition, which is the source of changes
Generated using TypeDoc
Base class which may define Domain Object. Enfoces the existence of field definitions. To act with DORF it is needed to either extend this class to or use @DorfObject() and the related annotations.
// class Person extends DorfDomainObject { constructor(private name: string, private surname: string) { super(); } // @Override get fieldDefinitions(): PropertiesToDorfDefinitionsMap<Person> { return { "name": this.nameDef, "surname": this.surnameDef }; } private get nameDef(): DorfInputDefinition<string> { return new DorfInputDefinition({ label: "Name", type: "text" }); } private get surnameDef(): DorfInputDefinition<string> { return new DorfInputDefinition({ label: "Surname", type: "text" }); } }