MCPcopy Index your code
hub / github.com/json-editor/json-editor / preBuild

Method preBuild

src/editors/array.js:75–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 preBuild () {
76 super.preBuild()
77
78 this.rows = []
79 this.row_cache = []
80
81 this.hide_delete_buttons = this.options.disable_array_delete || this.jsoneditor.options.disable_array_delete
82 this.hide_delete_all_rows_buttons = this.hide_delete_buttons || this.options.disable_array_delete_all_rows || this.jsoneditor.options.disable_array_delete_all_rows
83 this.hide_delete_last_row_buttons = this.hide_delete_buttons || this.options.disable_array_delete_last_row || this.jsoneditor.options.disable_array_delete_last_row
84 this.hide_move_buttons = this.options.disable_array_reorder || this.jsoneditor.options.disable_array_reorder
85 this.hide_add_button = this.options.disable_array_add || this.jsoneditor.options.disable_array_add
86 this.show_copy_button = this.options.enable_array_copy || this.jsoneditor.options.enable_array_copy
87 this.array_controls_top = this.options.array_controls_top || this.jsoneditor.options.array_controls_top
88 }
89
90 build () {
91 if (!this.options.compact) {

Callers 1

getElementEditorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected