same widget • e.g. embedding video • Specialized – Limited functionality • e.g. only embed video • Manageable – Can be small • Because of specialization 3 Why use widgets?
– Build the page • e.g. show top and left hand navigation, display a content item, ... – Support for the context of the page • e.g. edit permissions of content, add members to a research group, change your pro le picture, ... 4 How do you use widgets?
page – <div data-widget='footer'><!-- --></div> • Widgets can be lazy loaded – Widget API loads widgets when triggered • Con guration (manifest.json) de nes triggers – Selectors » A CSS class added to an element – Events » When red, load the widget 5 How are widgets loaded?
up-to-date documentation • Reusable components – Check out oae.components.css for reusable lists, buttons, icons, ... • Support! – irc #sakai – on list [email protected] 6 What help is out there?