new Social(app, ui, view)
- Description:
Social and Follower rendering
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
ui |
Simplicite.UI.Engine | Main UI controller |
view |
Simplicite.UI.View.Main | View services |
Methods
display(ctn, list, p, cbk)
- Description:
Display the social posts
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ctn |
jQuery | container |
|||||||||||||||||||||||||||||||||||||||
list |
Array.<Object> | list of posts (paginated) |
|||||||||||||||||||||||||||||||||||||||
p |
Object | optional parameters { onlist, activity } Properties
|
|||||||||||||||||||||||||||||||||||||||
cbk |
function | optional callback |
follow(p, cbk)
- Description:
Follower dialog
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
p |
Object | optional parameters { onfollow } Properties
|
||||||
cbk |
function | optional callback |
shareButton(config, o, p)
- Description:
Build a share button
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | see SOCIAL_SHARE parameter |
||||||||||||||||||
o |
Object | Optional object |
||||||||||||||||||
p |
Object | Optional share data Properties
|