/
SocialMediaInterface.ts
66 lines (63 loc) · 1.07 KB
/
SocialMediaInterface.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
export interface SocialMediaInterface{
/**
* Store user configurations
*/
userConfig: any;
/**
* Store default configuration
*/
config: any;
/**
* Get all configuration as one single object
*/
getConfig(): any;
/**
* Set the user config globally
* @param user
*/
userSetup(user): any;
/**
* Merge default config with user config
* @param obj1
* @param obj2
*/
mergeRecursive(obj1, obj2): any;
/**
* Get configuration per element
* @param elem
*/
getConfigElement(elem): any;
/**
* Initialise the icons
*/
init(): any;
/**
* Build icons
* @param currentTag
* @param i
*/
createIcons(currentTag, i): any;
/**
* Get active icons
*/
getActiveIcons(): any;
/**
* Create anchors
* @param target
* @param i
* @param cls
* @param url
*/
createAnchor(target, i, cls, url): any;
/**
* Create anchor
* @param target
* @param name
*/
createFontAwesomeElement(target,name) : any;
/**
* Handle click event
* @param e
*/
handleDataLoaded(e): any;
}