added accessor for readonly

This commit is contained in:
dcore94 2023-06-07 18:20:55 +02:00
parent e4b5ae496b
commit 20ac50bc22
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ class Renderer{
return this.#input.minOccurs > 0
}
get readOnly(){
return this.#input.schema.readOnly
}
static instance(input){
if(this.isEnum(input)){
return new EnumInputRenderer(input)