Home Reference Source
import TreeView from './ui/components/treeview.js'
public class | source

TreeView

Extends:

Events → TreeView

treeview, e.g. for patch outline

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private

_data: *

Method Summary

Public Methods
public
public

html(data: *): *

Private Methods
private

_html(data: *[], level: number, html: string): *

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
private

_log: *

private

_logEvents: boolean

private

_logName: string

public

addEventListener(which: *, cb: *, idPrefix: string): string

add event listener

public

emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *)

emit event

public

hasEventListener(id: *, cb: *): boolean

check event listener registration

public

hasListenerForEventName(eventName: *): boolean

check event listener by name

public

logEvents(enabled: boolean, logName: string)

enable/disable logging of events for the class

public

removeEventListener(id: *, cb: *)

rempve event listener registration

Public Constructors

public constructor() source

Override:

Events#constructor

Private Members

private _clickListenerIds: *[] source

private _data: * source

Public Methods

public bindListeners() source

public html(data: *): * source

Params:

NameTypeAttributeDescription
data *

Return:

*

Private Methods

private _html(data: *[], level: number, html: string): * source

Params:

NameTypeAttributeDescription
data *[]
  • optional
  • default: []
level number
  • optional
  • default: 0
html string
  • optional
  • default:

Return:

*