Creating, editing, and exporting custom widgets : Mashup Center 2.0Added by IBM on November 20, 2009 | Version 1 (Original)
Contents: Creating mashups : Mashup Center 2.0
This topic describes how to use the widget builder to create and edit your own widgets. After you create widgets, you can customize them, export them to your local machine so that you can import them later or send to others. You can add them to the palette and use them in your mashup applications or add them to the catalog to share.
- To open the widget builder, open the main actions menu, and select Create a New Widget.
- Click Work with the widget editor.
- Click Create a New Widget Project.
- In the Widget Builder window, do the following steps:
- In the Name your project field, type a unique name for your project. Be sure to use a name that clearly indicates the purpose of the project.
- In the Widget Project Type section, select one of the following types of project that you want to use as a starting point:
In the Widget Icon section, select an icon for the widget. This is the icon that displays beside the widget in the palette and also in the title bar of the widget after you drag it onto the page. You can either select a default icon from the list, or you can upload an icon from your local machine.
Click Create Project.
- Create a widget from starter files: This option allows you to create a new widget using two starter files for the widget, including catalog.xml (the widget definition file) and iwidget.xml. The iwidget.xml file is a file that displays a simple Hello World string.
- Create a blank widget project: This option starts a blank project. The widget builder provides catalog.xml, but no other files.
- Create a widget from your existing files: This option creates a new widget project based on a ZIP file that is stored on your local machine. Browse to the files and select Upload.
If you are finished creating your widget project, click Export at the top of the window. You can add your new widget to the current page, the palette, or the catalog. You can also export it as a ZIP file onto your local machine and import it back into the widget builder when creating a new widget project.
To save your project, click Done. Now, when you open the widget editor again, you can select your new project and edit it as desired.
Parent topic: Using the widget builder : Mashup Center 2.0