div - 区域

HTML 内のコンテンツの区域またはブロックとしての役割を果たします。 他のコントロールとテキストが含まれます。

カテゴリ

コンテナコントロール

構文

<xp:div attributes>content</xp:div>
表 1. すべてのプロパティ
カテゴリ プロパティ
アクセシビリティ role、title
basics attrs、binding、dir、id、lang、loaded、rendered、rendererType
dojo dojoAttributes、dojoType
イベント onclick、 ondblclick、 onkeydown、 onkeypress、onkeyup、 onmousedown、onmousemove、onmouseout、onmouseover、onmouseup
styling disableTheme、style、styleClass、themeId

使用法

実行時に、区域のコンテンツが、プロパティが割り当てられた状態で ページに表示されます。

例

下の Div コントロールには、異なるスタイルを持つテキストと編集ボックスが含まれています。
<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>