The Art of e-Learning

Frequently Asked Questions

Components

What the components are?

Version: 4.0

A component is an element, which can be placed on the page. For example text area, choice fields, audio and pop-up are components.

Components and templates base expansion shortens time of course creation and makes course appearance more attractive. So, speaking about economics, it increases efficiency of course creation, lowers costs and at the same time improves quality of the courses.



How to create a component?

Version: 4.0

You should know basics of XML and HTML, and have some skills in JavaScript programming.

All components are in directory <WBTExpress directory>/components. To make new one please make new directory in components_user directory. To make working component you need to create and edit following files:

definition.xml - component's definition in XML
body.js - HTML code, which is placed on a page in BODY section.
editor.html - Properties editor written in HTML. This file is loaded automatically every time when User opens
a dialog window to change component's properties.
head.js - HTML code, which contains comopnent's functionality.
icon.bmp - Icon (16x16), which will appear in WBTExpress.

There also can be:

style.html - which is similar to editor.html and is called whenever User opens style dialog for component.

After adding a new component, WBTExpress must be restarted.

Here are sample files:

definition.xml

head.js

body.js

editor.html