Home Reference Source
public class | source

Loader

A class responsible for loading templates and other resources

Static Method Summary

Static Public Methods
public static

loadTemplate(name: String, asyncQUery,: boolean): *

Return html template

public static

loadTemplateIntoElem(tempUrl: String, elem,: jquery object, append: boolean, asyncQUery,: boolean): *

Return html template and loads it in the given element

Static Public Methods

public static loadTemplate(name: String, asyncQUery,: boolean): * source

Return html template

Params:

NameTypeAttributeDescription
name String

of the template

asyncQUery, boolean

allows to choose the loading method

Return:

*

public static loadTemplateIntoElem(tempUrl: String, elem,: jquery object, append: boolean, asyncQUery,: boolean): * source

Return html template and loads it in the given element

Params:

NameTypeAttributeDescription
tempUrl String

of the template

elem, jquery object

load the html in this element

append boolean
asyncQUery, boolean

allows to choose the loading method

Return:

*