Started textnodes, renamed tool with wrong name, started field configuration system
This commit is contained in:
16
experiments/config.mjs
Normal file
16
experiments/config.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Field_Configuration } from '@efforting.tech/data/field-configuration';
|
||||
|
||||
|
||||
function mandatory_anything(value) {
|
||||
return value !== undefined;
|
||||
}
|
||||
|
||||
|
||||
const fc = new Field_Configuration('Some_Field', mandatory_anything, 'Anything defined');
|
||||
|
||||
|
||||
console.log(fc.check_validation(undefined));
|
||||
console.log(fc.check_validation(true));
|
||||
|
||||
//fc.validate(undefined);
|
||||
fc.validate(undefined, 'New thingamabob object');
|
||||
Reference in New Issue
Block a user