minibar-api.html: small documentation improvements

This commit is contained in:
hallgren
2012-06-11 16:00:03 +00:00
parent 8b465dcaff
commit 60d8ec58a2

View File

@@ -138,7 +138,7 @@ HTML file, you would normally include at least the following:
other apps might of course use the entered text for other purposes. other apps might of course use the entered text for other purposes.
The following methods will be called: The following methods will be called:
<ul> <ul>
<li><code>translations.clear()</code> is called when there no entered <li><code>translations.clear()</code> is called when there is no entered
text. text.
<li><code>translations.translateFrom({from:<var>conc</var>,input:<var>string</var>})</code> <li><code>translations.translateFrom({from:<var>conc</var>,input:<var>string</var>})</code>
is called when the user has entered some text. The <code>from</code> is called when the user has entered some text. The <code>from</code>
@@ -171,7 +171,7 @@ contains two field that the caller should add to the user interface:
<h2 id=Translations>The Translations object</h2> <h2 id=Translations>The Translations object</h2>
This object display translations. It is defined in This object displays translations. It is defined in
<a href="minibar_translations.js">minibar_translations.js</a>. <a href="minibar_translations.js">minibar_translations.js</a>.
It also uses some auxiliary functions defined It also uses some auxiliary functions defined
in <a href="minibar_support.js">minibar_support.js</a> in <a href="minibar_support.js">minibar_support.js</a>
@@ -209,9 +209,11 @@ The <code>translations</code> object created by the
<code>Translations</code> constructor contains two field that the caller <code>Translations</code> constructor contains two field that the caller
should add to the user interface: should add to the user interface:
<ul> <ul>
<li><code>input.main</code> is the main user interface where the current <li><code>translations.main</code> is the main user interface where the current
translations are displayed. translations are displayed.
<li><code>input.menus</code> contains the menu for selecting target language. <li><code>translations.menus</code> contains the menu for selecting
a target language. The user can select <em>All</em> or one particular
language.
</ul> </ul>
<h3>Methods</h3> <h3>Methods</h3>
@@ -220,13 +222,17 @@ should add to the user interface:
after a different grammar is selected in the <code>server</code> object. It after a different grammar is selected in the <code>server</code> object. It
will clear away old translations and update the target language menu will clear away old translations and update the target language menu
with the languages available in the new grammar. with the languages available in the new grammar.
<li><code>translations.clear()</code> clears the main output area from old translations.
<li><code>translations.translateFrom({from:<var>conc</var>,input:<var>string</var>})</code>
displays translations of the string given in the <code>input</code>
property from the concrete syntax indicated by the <code>from</code>.
</ul> </ul>
<hr> <hr>
<div class=modtime> <div class=modtime>
<small class=modtime> <small class=modtime>
HTML <!-- hhmts start --> Last modified: Sun Aug 21 19:11:35 CEST 2011 <!-- hhmts end --> HTML <!-- hhmts start --> Last modified: Mon Jun 11 17:55:10 CEST 2012 <!-- hhmts end -->
</small> </small>
</div> </div>