div - Division
Acts as a division or block of content in HTML. Contains other controls and text.
Category
Container ControlsSyntax
<xp:div attributes>content</xp:div>
Category | Properties |
---|---|
accessibility | role, title |
basics | attrs, binding, dir, id, lang, loaded, rendered, rendererType |
dojo | dojoAttributes, dojoType |
events | onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup |
styling | disableTheme, style, styleClass, themeId |
Usage
At run time, the content of the division appears on the page with any assigned properties.
Examples
These Div controls contain text and edit boxes with different styling.<xp:div style="font-weight:bold;padding-bottom:20.0px">
Day phone =>
<xp:inputText id="inputText2" value="#{document1.phoneday}"></xp:inputText>
</xp:div>
<xp:div style="font-weight:bold">
Night phone =>
<xp:inputText id="inputText3" value="#{document1.phonenight}"></xp:inputText>
</xp:div>