<toolbarComboBox> Element

This element will cause a particular combo box to be present on the toolbar within Ephox EditLive! for Java.

Element Tree Structure

<editLiveForJava>
    <toolbars>
        <formatToolbar> OR <commandToolbar>
            <toolbarComboBox>

<editLiveForJava>
     ...
     <toolbars>
          <formatToolbar> OR <commandToolbar>*
               <toolbarComboBox ... >
                    <!--toolbar combo box configuration settings-->
               </toolbarComboBox>
          </formatToolbar> OR </commandToolbar>*
     </toolbars>
     ...
</editLiveForJava>

*Note:  The <toolbarComboBox> element can exist within either the <formatToolbar> element or the <commandToolbar> element.  Closing tags should be matched to opening tags (ie. <formatToolbar> ... </formatToolbar>).

Required Attributes

Attribute Description
name This attribute gives the name for the button group.  It must be one of the following:
  • tlbStyle - The Style combo box containing the various styles available to end users (eg. Heading 1, Heading 2).
  • tlbFace - The Typeface combo box containing the various typefaces or fonts available to end users (eg. Times New Roman, Arial).
  • tlbSize - The Size combo box containing the various font sizes available to end users (eg. 12pt, 14pt).

Child Elements

Element Description
<comboBoxItem> This element contains the information required by EditLive! for Java to configure an item within one of the EditLive! for Java combo boxes. 

Example

The following example demonstrates how to add the Style combo box to the Format Toolbar.

<editLiveForJava>
    ...
    <toolbars>
        <formatToolbar>
            <toolbarComboBox name="tlbStyle">
                ...
            </toolbarComboBox>
        </formatToolbar>
    </toolbars>
    ...
</editLiveForJava>

Remarks

The <toolbarComboBox> element can appear multiple times within the <formatToolbar> or <commandToolbar> elements.

See Also