Passed
Push — master ( 31e3b7...3c51f7 )
by Felipe Catão do
01:12
created

Components.createComponent   A

Complexity

Conditions 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
//Write this document for import for all functions of Lavine.js//
2
3
//render Lavine module
4
export class Render{
5
    /**
6
     * Create one new Element for your page,insert one Id.
7
     * @param {string} renderElement name of tag Html what your want add to page.
8
     * @param {string} content Content for your new element.
9
     * @param {string} selectObject Target object of your add the new element.
10
     * @param {string} Id Id target for ypur new element.
11
     */
12
    newElement(renderElement:any,content:any,selectObject:any,classList:any,Id:any):void
13
    createHtml(elementTarget:any,content:any):void
14
    changeContent(id:any,content:any):void
15
    removeElement(element:any):void
16
    setAtribute(elementId:any,atribute:any,value:any):void
17
    addStyle(elementId:any,ruleCss:any):void
18
    registerDinamicPage(pageId:any):void
19
    clearPage():void
20
}
21
22
export class Components{
23
    createComponent(componentName:any,content:any):void
24
    renderComponent(targetRender:any,componentName:any):void
25
    addListener(targetElement:any,type:any,functionCall:any):void
26
}