columnheader タグの解説(Domino DTD)

この記事では、DXLの<columnheader>タグについて、解説します。

<columnheader>タグは、ビューの列ヘッダーの情報を表します。

属性

$$
\begin{array}{|l|l|l|l|} \hline
\text{属性名} & \text{概要} & \text{設定値} & \text{デフォルト}  \\ \hline
\text{title} & \text{列タイトル} & \text{文字列} & \\ \hline
\text{align} & \text{文字揃え} & \text{文字揃え参照} & \text{左寄せ} \\ \hline
\end{array}
$$

※ <columnheader>タグは、<column>タグの中に必須のタグです。
  列タイトルがブランクで、フォント情報がデフォルトの場合も、<columnheader>タグは生成されます。

<column hidedetailrows='false' itemname='Subject' width='10' resizable='true'
 separatemultiplevalues='false' sortnoaccent='false' sortnocase='true' showaslinks='false'>
 	<columnheader />
 </column>

文字揃え

$$
\begin{array}{|l|l|} \hline
\text{表示値} & \text{値} \\ \hline
\text{左揃え} & \text{left} \\ \hline
\text{中央揃え} & \text{center} \\ \hline
\text{右揃え} & \text{right} \\ \hline\end{array}
$$

使用例

DXLの<columnheader>タグは、非常にシンプルなタグです。フォント情報はこのタグの配下に<font>タグを含めます。

以下の例では、「件名」というタイトル、列タイトルのフォントを9pt、太字、中央揃えを適用しています。

<column hidedetailrows='false' itemname='Subject' width='10' resizable='true'
 separatemultiplevalues='false' sortnoaccent='false' sortnocase='true' showaslinks='false'>
	<columnheader align='center' title='件名'>
		<font size='9pt' style='bold'/>
	</columnheader>
</column>

この記事が気に入ったらサポートをしてみませんか?