Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creating a widget gallery

To make it easier for users to add widgets to parts of an application, you may want to provide users with a gallery of widgets.

Wookie provides the /widgets interface for accessing metadata about currently installed widgets. There are two approaches that can be taken:

/widgets?all=true returns all the current widgets available. This is the method that most plugins will want to use.

/widgets with no parameters returns only the widgets set as defaults for the currently set widget services. This is mostly used for some advanced plugins for authoring tools.

Each method returns metadata including widget icons, titles, categories, and descriptions. This should be sufficient for creating a gallery user interface where a user can select a widget, and your application can use the identifier of the widget to create an instance, as covered in the next section.

Widget instance lifecycle

Requesting an instance

...

Adding Participants

Initial state information

Advanced functionality

Cloning widget instances

...