new Social
Social and Follower rendering
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
engine |
Simplicite.UI.Engine | Main controller |
view |
Simplicite.UI.View.Main | View services |
- Source:
- social.js, line 14
Methods
-
display
-
Display the social posts
Parameters:
Name Type Description ctn
jQuery container list
object[] list of posts (paginated) p
object optional parameters { onlist, activity } Properties
Name Type Description activity
boolean true to list the object/public activities, false to hide activities onlist
function search service handler onpost
function post service handler ondel
function delete service handler onlike
function like service handler onfollow
function follow service handler count
number total of posts levels
object optional counts per level (info, warn, error) object
object optional parent object title
string Dialog title audit
string List only audit posts embedded
string false to open a dialog cbk
function optional callback - Source:
- social.js, line 46
-
follow
-
Follower dialog
Parameters:
Name Type Description p
object optional parameters { onfollow } Properties
Name Type Description onfollow
function follow service handler cbk
function optional callback - Source:
- social.js, line 378
-
shareButton
-
Build a share button
Parameters:
Name Type Description config
object see SOCIAL_SHARE parameter o
object Optional object p
object Optional share data Properties
Name Type Description title
string optional title (email) text
string optional text content url
string URL to share image
string optional URL to image (pinterest) root
string Root domain to share - Source:
- social.js, line 532