From 20ac50bc226274362532411e9fd312bd659692e7 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 7 Jun 2023 18:20:55 +0200 Subject: [PATCH] added accessor for readonly --- ccp/js/inputwidgetcontroller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ccp/js/inputwidgetcontroller.js b/ccp/js/inputwidgetcontroller.js index 996814c..1aedbc2 100644 --- a/ccp/js/inputwidgetcontroller.js +++ b/ccp/js/inputwidgetcontroller.js @@ -64,6 +64,10 @@ class Renderer{ get required(){ return this.#input.minOccurs > 0 } + + get readOnly(){ + return this.#input.schema.readOnly + } static instance(input){ if(this.isEnum(input)){