Skip to content

Multilevel header

清沐 edited this page Feb 22, 2020 · 2 revisions

Multi level header, for defaultexcelbuilder and defaultstreamexcelbuilder, is used as follows:

Realization way

@ExcelColumn(title="拓展信息->年龄")
Integer age

By default, -> is used as the separator. You can also customize the separator:@ExcelModel(titleSeparator="#")

@ExcelColumn(title="拓展信息#年龄")
Integer age

If dynamic construction is adopted, i.e., titles (List<String> titles), the code is as follows:

List<String> titles=new ArrayList<>();
titles.add("拓展信息->年龄");
Clone this wiki locally