Class: UI

UI

new UI()

Responsible class to manage all things related with GUI
Source:

Methods

calculeButtonContent(pluginpath, infobutton)

On component metadata file may be field "icon" and "label". This fields are used to create action component button. When user click this button, on targetcontent to been added an element.
Parameters:
Name Type Description
pluginpath String relative path to root component
infobutton Object JSON created from metadata file.
Properties
Name Type Description
icon String relative icon path
label String Label button.
Source:

getCBObjectFromButton(component)

Create element from component. This include cbobject and rendered view on targetcontent. When append rendered view on targetcontent then trigger add_callback function related with component
Parameters:
Name Type Description
component String Component idtype indicated on metadata file.
Source:

loadTheme()

Load theme to apply all aplication. This function look for css/js folders and load all find.
Source:

renderActionsButtons()

Create components buttons to append elements into selected section. Here method call editorView and add_callback methods of CBObjects. See CBObject#editorView and CBObject.add_callback
Source:

showIntro()

Initialize wizard that show open or create new project
Source:

showNewOpenProject(e)

Show wizard with recent projects to open, create new project or open other project
Parameters:
Name Type Description
e event to send this object reference
Source:

showTypeProject(e)

Load dialog on #wizard div to create new project.
Parameters:
Name Type Description
e event to send this object reference
Source: