/**
* Example Webfan Desktop Modul
* @requires http://api.webfan.de/api-d/4/js-api/library.js?plugin=jquery-desktop
* @requires http://api.webfan.de/api-d/4/js-api/library.js
*
* @copyright (c) Till Wehowski - All rights reserved - http://look-up.webfan.de/webdof-license
*
* - Modul Example Template/Schema
*
* */
/*
Function $.WebfanDesktopModul registers an modul/plugin at the $.WebfanDesktop
@param $.WebfanDesktop
@param Object Literal
*/
$.WebfanDesktopModul($.WebfanDesktop, {
mid : 'vendor-modulname',
title : 'MyModul',
author : 'Name Lastname, Example.com',
description : 'This is an example template of a frdl/webfan/desktop modul/plugin.',
ico : 'http://example.com/images/modulname.icon.png',
install : 'jQueryPluginFunctionName_Install',
languageStrings : {
'Update' : {
'en_GB' : 'Update',
'de_DE' : 'Aktualisieren',
'fr_FR' : 'Mise à jour'
} ,
'Hello World' : {
'en_GB' : 'Hello World',
'de_DE' : 'Hallo Welt',
'fr_FR' : 'Bonjour le monde'
},
/*
<span id="id-of-dom-element">yes</span>
*/
'title::id:id-of-dom-element' : {
'en_GB' : 'yes',
'de_DE' : 'ja',
'fr_FR' : 'oui'
},
/*
<span class="my-class">nein</span>
*/
'class:my-class' : {
'de_DE' : 'nein',
'en_GB' : 'No',
'fr_FR' : 'non'
}
autoload : {
src: 'http://example.com/the-plugin-file.js',
name: [ 'jQueryPluginFunctionName_Install', 'jQueryPluginFunctionName'],
dependencies: {
js: [
'http://api.webfan.de/api-d/4/js-api/library.js',
'http://api.webfan.de/api-d/4/js-api/library.js?plugin=wd-desktop',
'http://example.com/another-required-plugin-file.js'
],
css: [
]
},
cache: true
},
init : function(){
alert("This function is called when the modul was registered.");
},
cb_open : function(){
alert("This function is called when the modul is opened by user.");
},
icons : [
{
mid : 'vendor-modulname',
img : 'http://example.com/images/modulname.icon.png',
cb_open : function(ev){
alert("This function is called when this icon is clicked.");
}
},
{
mid : 'vendor-modulname_icon2',
img : 'http://example.com/images/modulname.icon_2.png',
cb_open : function(ev){
alert("This function is called when this icon is clicked.");
}
}
],
windows : [
{
mid : 'vendor-modulname',
img : 'http://example.com/images/modulname.icon.png',
title : 'My Modul',
html_aside : 'Some html on the left side of the <strong>MyModul</strong> window...',
html_main : 'Some html in the middle of the <strong>MyModul</strong> window...
<br />
Here comes the modul main content...
',
html_bottom : 'Modul Status Bar Text',
exec : function(ev){
alert("This function is called when the modul is opened by api.");
}
}
],
menulinks : [
],
canvas : [
{
type : 'html',
device : '#wrapper',
prepend : true,
html : '<div id="MyModulOutOfDesktopHTML" style="background: #fff;"></div>'
},
{
type : 'html',
device : '#desktop',
prepend : true,
html : 'Write something to desktop dom... '
}
],
config : {
},
/* ydn schema */
shema : null
});
|