PHP Classes

File: src/stubs/views/partials/fields/show/json.blade.php.stub

Recommend this page to a friend!
  Classes of TJ Webb  >  Laravel CRUD Generator  >  src/stubs/views/partials/fields/show/json.blade.php.stub  >  Download  
File: src/stubs/views/partials/fields/show/json.blade.php.stub
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel CRUD Generator
Generate MVC classes for any Laravel model
Author: By
Last change:
Date: 2 years ago
Size: 853 bytes


Class file image Download

            <div id="jsoneditor_{FIELD_MACHINE_NAME}" class="json_editor"></div>

                    container = document.getElementById("jsoneditor_" + uid)
                    options = {
                        modes: ["tree"],
                        onChangeText: function(jsonString){
                            document.getElementById("jsontext_" + uid).value = jsonString;
                    editor = new JSONEditor(this.container, this.options)
                    initial = {!! is_string({MODEL_VARIABLE}) ? {MODEL_VARIABLE} : json_encode({MODEL_VARIABLE} ?? new stdClass())  !!}

For more information send a message to info at phpclasses dot org.