Skip to content

Drop down list

清沐 edited this page Mar 29, 2020 · 5 revisions

DefaultExcelBuilder、DefaultStreamExcelBuilder drop-down list

🚫 This kind of drop-down list is limited by the number of words. The total characters of the list cannot exceed 250 characters

The above two kinds of drop-down list generation are very simple. Only one list or array is needed, which is the drop-down list by default.

@ExcelColumn(title="下拉列表")
List<String> options;

Drop-down list of template

Add the attribute "dropDownList" to the td cell. The cell contents are as follows: option 1, option 2, option 3 , separated by commas in English

<td dropDownList>option 1, option 2, option 3</td>
Clone this wiki locally