| | 1 | == Widget description == |
| | 2 | |
| | 3 | |
| | 4 | The widget description includes common information about widget and widget applications summary. You should |
| | 5 | define the widget description in the "'''[your_widget]/inc/constants.inc.php'''" file. Widget information includes info about '''title''', '''version''', '''code''' (unique code for your widget), '''author''', '''author !HomePage''' and a widget preview image 130x130px ("'''[your_widget]/data/preview.jpg'''" file). |
| | 6 | |
| | 7 | The widget applications summary includes information about every flash application in this widget. Every widget |
| | 8 | application has the following parameters: |
| | 9 | |
| | 10 | 1. '''caption''' window title while displaying this application; |
| | 11 | |
| | 12 | 2. '''parameters''' - parameter names to pass to the application; |
| | 13 | |
| | 14 | 3. '''js''' - javascript files list that should be included to the page contents; |
| | 15 | |
| | 16 | 4. '''inline''' defines if this application should be integrated in some page design or if it will open in a pop-up window; |
| | 17 | |
| | 18 | 5. '''vResizable''' enable vertical resizing (only for pop-up); |
| | 19 | |
| | 20 | 6. '''hResizable''' - enable horizontal resizing (only for pop-up); |
| | 21 | |
| | 22 | 7. '''layout''' flash application layout parameters: top and left coordinates (for pop-up window), width and height in pixels; |
| | 23 | |
| | 24 | 8. '''minSize''' minimum flash application size (if it is resizable); |
| | 25 | |
| | 26 | 9. '''reloadable''' this means that your application can reload the page (for skin/language change). You can reload the current page by calling the javascript "reload" function from application (see demo2 application source); |
| | 27 | |
| | 28 | 10. '''div''' - defines flash container id, name and style properties. |
| | 29 | |