anatomy of a
widget package
what is a ".mylow" file?
Mylo widgets are distributed as widget package files with a ".mylow" extension. Widget packages are just renamed .zip files that contain the HTML code, configuration files, and anything else that makes up the widget. Check out the Hello World tutorial for instructions on how to create your own widget package file.
necessary files
These two files are required to be in every widget package.
- index.html
Contains the HTML code that will be displayed when the widget starts. Just like any other website, this can contain references to any other resource files in your widget, such as CSS, JavaScript, and images. - widgetPackage.xml
An XML file that contains information about the widget, such as its title, description, version number, width/height, and author info. Refer to Describe Your Widget for more info on how to create this file.
optional files
These files may optionally be included in the widget package to add extra functionality.
- myloConfig.xml
Contains any settings or preferences that the user may adjust in the widget's Settings dialog, such as text entries, dropdowns, and checkboxes. Refer to Add Preferences to Your Widget for more info. - temp.xml
The widget may load and save persistent data to this file as XML data. This file may be prepopulated with data and included in the widget package. Refer to Load and Save XML Data for more info. - eula.txt
If this "End User License Agreement" file is present, its contents will be displayed to the user when they install the widget, and the user must press Agree in order to continue the installation. - Any other files may be included in the widget package, such as CSS, JavaScript, or image files, as long as their filenames don't conflict with any of the reserved filenames mentioned here.