From MojiPage Wiki
MojiPage Widget Concepts
This article introduces the general concept of how MojiPage widgets work.
Contents |
Terminologies
Widget
A widget is simply an XHTML file retrieved from a URL, that uses the MojiPage Widget API (MWA).
Widget Instance
When a widget is added to a user's page, it is instantiated. A widget instance is owned by a user, is contained within a page, and has its own set of preferences. Aside from sharing the same widget code, it is separate from other widget instances.
View Modes
A widget instance can be embedded onto MojiPage in various views. We call that view modes. The possible view modes are:
- default view - when viewed on the page along with other widgets
- do view - this is a single widget view where the instance is rendered on a page on its own. This is generally provided to widgets that wish to define different sub actions (e.g. signup form that spans multiple pages.)
- config view - when a widget instance is being configured. This is the view where MojiPage provides the user-interface for changing preference values.
Languages: English • 日本語
