Class fsw.send
Send module. Handles the send button and related events.
Defined in: fsw.0.2.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
fsw.send()
|
Method Attributes | Method Name and Description |
---|---|
<static> |
fsw.send.createBtn(containerId, target, options)
Create a FB "send" button
Inserts a send button in the specified DOM element.
|
<static> |
fsw.send.sendBtn#bind(onSend)
Bind to "send" buttons' like/unlike events
|
Method Detail
<static>
fsw.send.createBtn(containerId, target, options)
Create a FB "send" button
Inserts a send button in the specified DOM element.
Containing element must have in ID.
- Parameters:
- {String} containerId
- ID of the DOM element in which to insert the Send button
- {String} target
- URL to Like
- options Optional
- Additional information passed to the like button
- {String} options.colorscheme
- Default: light - Alts: dark
- {String} options.font
- Default: arial - Alts: lucida grande | segoe ui | tahoma | trebuchet ms | verdana
- {String} options.ref
- a label for tracking referrals
<static>
fsw.send.sendBtn#bind(onSend)
Bind to "send" buttons' like/unlike events
var myButton = fsw.send.createBtn(containerId,target); myButton.bind(onSend);
- Parameters:
- {Function} onSend
- callback when user "sends" using FB send button