nJDSK.iconHelper.addIcon


Creates a new icon on the desktop

nJDSK.iconHelper.addIcon(iconId, iconTitle, iconImage, callback)

Parameters

  • string iconId icon unique id
  • string iconTitle icon title
  • string iconImage icon url
  • function callback icon click function

Example

nJDSK.iconHelper.addIcon('iconTest2','About Glassy','images/bws_logo2k9.png',function(e){
	e.preventDefault();
        alert('Icon clicked.');
	return false;
});