每个 fp:reporttemplate 都可以包含 fp:frontpage 标记。fp:frontpage 标记会插在目录之前,目录中不包含其章节。首页标记可以包含与章节标记类似的标记,但首页标记不包含属性。快速报告会忽略 fp:frontpage 标记。
<fp:frontpage> <fp:text>This is the front page</fp:text> </fp:frontpage>
属性 | 描述 |
---|---|
heading | 必需属性,用于表示章节的标题。 如果 hideheading="true",那么该属性不是必需属性。 |
hideheading | 可选属性,用于确定是显示还是隐藏标题。 缺省值为 hideheading="false"。 |
<fp:chapter heading="Chapter 1"> <fp:text>This is chapter 1.</fp:text> <fp:chapter heading="Chapter 1.1"> <fp:text>This is chapter 1.1.</fp:text></fp:chapter> </fp:chapter>