MCPcopy Create free account
hub / github.com/json-editor/json-editor / getHeaderText

Method getHeaderText

src/editor.js:538–542  ·  view source on GitHub ↗
(titleOnly)

Source from the content-addressed store, hash-verified

536 }
537
538 getHeaderText (titleOnly) {
539 if (this.header_text) return this.header_text
540 else if (titleOnly) return this.translateProperty(this.schema.title)
541 else return this.getTitle()
542 }
543
544 getPathDepth () {
545 return this.path.split('.').length

Callers 5

updateHeaderTextMethod · 0.95
addTabMethod · 0.80
refreshTabsMethod · 0.80
refreshTabsMethod · 0.80
addRowMethod · 0.80

Calls 1

getTitleMethod · 0.95

Tested by

no test coverage detected