Closed eluhr closed 2 years ago
Added the option to disable an editor widget via a property. By default it is set to false to allow backward compatibility.
Ref.: https://github.com/json-editor/json-editor#enable-and-disable-the-editor
Example:
<?php use dmstr\jsoneditor\JsonEditorWidget; echo JsonEditorWidget::widget([ 'schema' => [], 'model' => $model, 'attribute' => 'myproperty', 'disabled' => true // A brand new disable property 🎉 ]); ?>
Added the option to disable an editor widget via a property. By default it is set to false to allow backward compatibility.
Ref.: https://github.com/json-editor/json-editor#enable-and-disable-the-editor
Example: