MasterComponentTreeData

new MasterComponentTreeData(props)

Create a tree data object listing master component files.

Parameters:
NameTypeDescription
propsobject
Properties
NameTypeDescription
props.browserComponentBrowserModel

Reference to the component browser view model.

Members

columnView

systemInterface

Methods

displayComponent(componentDecl)

Returns the text attributes needed to display an entry of the list covering the components contained in the currently openend component file.

Parameters:
NameTypeDescription
componentDeclObject

The code entity representing the declaration of the component.

displayComponentFile()

Returns the text attributes needed to display an entry that represents a component file.

displayDirectory(dir, isOpen)

Returns the text attributes needed to display a directory that contains a collection of component files.

Parameters:
NameTypeDescription
dirString

The name of the directory.

isOpenBoolean

Wether or not the directory is currently opened.

displayPackage()

Returns the text attributes needed to display a package that contains a collection of component files.

(async) ensurePopularComponentsCollection()

Initializes a local folder comprising a set of "popular" component files such as buttons, input fields or lists.

(async) getCustomLocalProjects()

Returns all the custom project inside the lively.next projects folder that may contain custom component definitions.

To Do
  • Implement this feature.