dmstr/yii2-json-editor

Yii2 wrapper for "json-editor/json-editor" (is a fork of "jdorn/json-editor")

Installs: 2 109

Dependents: 3

Suggesters: 0

Stars: 3

Watchers: 5

Forks: 2

Open Issues: 1

Type:yii2-extension

0.3.5 2019-04-03 12:14 UTC

README

Yii2 wrapper for "json-editor/json-editor" (is a fork of "jdorn/json-editor").

Example

$form->field($model, 'example_field')->widget(JsonEditorWidget::className(), [
    'schema' => $example_schema,
    'clientOptions' => [
        'theme' => 'bootstrap3',
        'disable_collapse' => true,
        'disable_edit_json' => true,
        'disable_properties' => true,
        'no_additional_properties' => true,
    ],
]);