Class JSONEditorNode

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(editor: JSONEditor, params: JSONEditorConstructorParams): JSONEditorNode

Parameters

Returns

JSONEditorNode

Properties

public types: JSONEditorNodeType[]

Methods

public appendChild(node: JSONEditorNode)

Parameters

public blur()

public changeType(newType: string)

Parameters

  • newType: string

public clearDom()

public clone(): JSONEditorNode

Returns

JSONEditorNode

public collapse(recurse: boolean)

Parameters

  • recurse: boolean

public containsNode(node: JSONEditorNode): boolean

Parameters

Returns

boolean

public expand(recurse: boolean)

Parameters

  • recurse: boolean

public focus()

public getAppend(): HTMLElement

Returns

HTMLElement

public getDom(): HTMLElement

Returns

HTMLElement

public getField(): string

Returns

string

public getLevel(): number

Returns

number

public getParent(): JSONEditorNode

Returns

JSONEditorNode

public getValue(): any

Returns

any

public hide()

public hideChilds()

public insertBefore(node: JSONEditorNode, beforeNode: JSONEditorNode)

Parameters

public moveBefore(node: JSONEditorNode, beforeNode: JSONEditorNode)

Parameters

public moveTo(node: JSONEditorNode, index: number)

Parameters

public onEvent(event: Event)

Parameters

  • event: Event

public removeChild(node: JSONEditorNode): JSONEditorNode

Parameters

Returns

JSONEditorNode

public scrollTo()

public search(text: string): JSONEditorNode[]

Parameters

  • text: string

Returns

JSONEditorNode[]

public setField(field: string, fieldEditable: boolean)

Parameters

  • field: string
  • fieldEditable: boolean

public setHighlight(highlight: boolean)

Parameters

  • highlight: boolean

public setParent(parent: JSONEditorNode)

Parameters

public setValue(value: any)

Parameters

  • value: any

public showChilds()

public updateDom(options: any)

Parameters

  • options: any

public updateField(field: string)

Parameters

  • field: string

public updateValue(value: any)

Parameters

  • value: any