diff --git a/src/runtime/javascript/minibar/about.html b/src/runtime/javascript/minibar/about.html index 05fba4aef..372d85f19 100644 --- a/src/runtime/javascript/minibar/about.html +++ b/src/runtime/javascript/minibar/about.html @@ -160,11 +160,13 @@ Some implementation details: minibar_translations.js. Some common auxiliary functions have also been moved to a separate file: minibar_support.js. +
-This is the complete Minibar web app. It is defined in
+This object implements the complete Minibar web app. It is defined in
minibar.js. It also uses the Input
-and Translations objects, and some auxiliary functions defined
-in minibar_support.js
+and Translations objects described below, and some auxiliary
+functions defined in minibar_support.js
and support.js, so to use it in an
HTML file, you would normally include at least the following:
@@ -116,7 +116,7 @@ HTML file, you would normally include at least the following:
var input=new Input(server,options,translations)
+var input=new Input(server,translations,options)
server is the PGF service object
@@ -134,17 +134,22 @@ HTML file, you would normally include at least the following:
translations is the object that is notified when the input
- has changed. In the minibar, this is the object that display translations.
+ has changed. In the minibar, this is the object that display translations, but
+ other apps might of course use the entered text for other purposes.
The following methods will be called:
translations.clear()
+ translations.clear() is called when there no entered
+ text.
translations.translateFrom({from:conc,input:string})
+ is called when the user has entered some text. The from
+ property is the name of the concrete syntax and the input
+ property is the entered text.
input object created by the Inputconstructor
+The input object created by the Input constructor
contains two field that the caller should add to the user interface:
input.main is the main user interface where the current
@@ -221,7 +226,7 @@ should add to the user interface: