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

Method disable

src/editors/array.js:52–63  ·  view source on GitHub ↗
(alwaysDisabled)

Source from the content-addressed store, hash-verified

50 }
51
52 disable (alwaysDisabled) {
53 if (alwaysDisabled) this.always_disabled = true
54 this.setAvailability(this, true)
55
56 if (this.rows) {
57 this.rows.forEach(row => {
58 row.disable(alwaysDisabled)
59 this.setAvailability(row, true)
60 })
61 }
62 super.disable()
63 }
64
65 setAvailability (element, val) {
66 if (element.add_row_button) element.add_row_button.disabled = val

Callers 1

postBuildMethod · 0.95

Calls 1

setAvailabilityMethod · 0.95

Tested by

no test coverage detected