Class Index | File Index

Classes


Built-In Namespace _global_

Field Summary
Field Attributes Field Name and Description
 
How long the toaster will be displayed by default.
 
ICON_PATH constant for holding path icon images
 
PERMISSION_DEFAULT constant for default string
 
PERMISSION_DENIED constant for denied string
 
PERMISSION_GRANTED constant for granted string
Method Summary
Method Attributes Method Name and Description
 
_addToasterListeners(notification, options, toasterTimer)
This method will add onclick and onerror listener to Notification.
 
_createNotification(title, options)
_createNotification creates Notification instance
 
This method will request permission to display Toaster.
 
_setAutoClose(notification, autoClose)
_setAutoClose set the auto close time for toaster, it checks if client code passed custom time out for the toaster, otherwise it set the AUTO_CLOSE_TIME
 
callback(param)
 
define(name, deps, callback)
 
 
main(name, deps, callback, relName)
 
makeMap(name, relName)
Makes a name map, normalizing the name, and using a plugin for normalization if necessary.
 
 
processResponse(response)
 
req(deps, callback, relName, forceSync, alt)
Field Detail
AUTO_CLOSE_TIME
How long the toaster will be displayed by default. Default timeout is 8 seconds
Defined in: finesse.js.

ICON_PATH
ICON_PATH constant for holding path icon images
Defined in: finesse.js.

PERMISSION_DEFAULT
PERMISSION_DEFAULT constant for default string
Defined in: finesse.js.

PERMISSION_DENIED
PERMISSION_DENIED constant for denied string
Defined in: finesse.js.

PERMISSION_GRANTED
PERMISSION_GRANTED constant for granted string
Defined in: finesse.js.
Method Detail
_addToasterListeners(notification, options, toasterTimer)
This method will add onclick and onerror listener to Notification. on click of toaster the gadget which originally had focus may loose the focus. To get the back the focus on any element inside the gadget use the on click callback handler.
Defined in: finesse.js.
Parameters:
{Object} notification
window.Notification that creates Html5 Notification.
{Object} options
JSON object for notification options.
toasterTimer

_createNotification(title, options)
_createNotification creates Notification instance
Defined in: finesse.js.
Parameters:
{String} title
title string should be displayed in the Toaster
{Object} options
JSON object for notification options.

_requestPermission()
This method will request permission to display Toaster.
Defined in: finesse.js.

_setAutoClose(notification, autoClose)
_setAutoClose set the auto close time for toaster, it checks if client code passed custom time out for the toaster, otherwise it set the AUTO_CLOSE_TIME
Defined in: finesse.js.
Parameters:
{Object} notification
window.Notification that creates Html5 Notification.
{String} autoClose
autoClose time of the Toaster
Returns:
toasterTimeout Toaster Timeout

callback(param)

Defined in: finesse.js.
Parameters:
param

define(name, deps, callback)

Defined in: finesse.js.
Parameters:
name
deps
callback

logToConsole(str)

Defined in: finesse.js.
Parameters:
str

main(name, deps, callback, relName)

Defined in: finesse.js.
Parameters:
name
deps
callback
relName

makeMap(name, relName)
Makes a name map, normalizing the name, and using a plugin for normalization if necessary. Grabs a ref to plugin too, as an optimization.
Defined in: finesse.js.
Parameters:
name
relName

processMediaStateChange(media)

Defined in: finesse.js.
Parameters:
media

processResponse(response)

Defined in: finesse.js.
Parameters:
response

req(deps, callback, relName, forceSync, alt)

Defined in: finesse.js.
Parameters:
deps
callback
relName
forceSync
alt

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Nov 06 2017 08:00:55 GMT-0500 (EST)