Social

Simplicite.UI.View. Social

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
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

follow(p, cbk)

Description:
  • Follower dialog

Parameters:
Name Type Description
p Object

optional parameters { onfollow }

Properties
Name Type Description
onfollow function

follow service handler

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
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