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

Method getNumColumns

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

Source from the content-addressed store, hash-verified

27 }
28
29 getNumColumns () {
30 const info = this.getItemInfo(0)
31 /* Tabs require extra horizontal space */
32 if (this.tabs_holder && this.schema.format !== 'tabs-top') {
33 return Math.max(Math.min(12, info.width + 2), 4)
34 }
35 return info.width
36 }
37
38 enable () {
39 if (!this.always_disabled) {

Callers

nothing calls this directly

Calls 1

getItemInfoMethod · 0.95

Tested by

no test coverage detected