headersFromEntity static method
Implementation
static NUITableRow? headersFromEntity(NUIEntMapper mapper){
if(mapper.fields().isNullOrEmpty()) return null;
final cells = <NUITableCell>[];
for(NUIEntField field in mapper.fields()){
if(field.type == NUIEntType.STRING || field.type == NUIEntType.DOUBLE || field.type == NUIEntType.DATE || field.type == NUIEntType.INTEGER || field.type == NUIEntType.BOOLEAN) {
cells.add(NUITableCell(value: field.name.toUpperCase(), type: NUIEntType.STRING));
}
}
return NUITableRow(cells);
}