Email Tables
EmailTable
box.EmailTable(table => {
table.AddHeader("Name", "Role", "Department");
table.AddRow("Alice", "Engineer", "Engineering");
table.AddRow("Bob", "Designer", "Design");
});EmailDynamicTable
Data-driven table with conditional formatting:
box.EmailDynamicTable(employees, table => {
table.Column("Name");
table.Column("Salary", col => col
.WithMoney()
.WithConditionalStyle(
employee => employee.Salary > 100000m,
cell => cell.WithTextColor("#10b981")));
});EmailKeyValueTable
box.EmailKeyValueTable(table => {
table.AddRow("Order Number", "#12345");
table.AddRow("Status", "Confirmed");
table.AddRow("Total", "$149.99");
});Mobile Stacking
Tables automatically support mobile stacking layouts for responsive rendering on small screens.
API Reference
- Table API: /api/email/htmlforgex-email-emailtable/
- Dynamic table API: /api/email/htmlforgex-email-emaildynamictable/
- Key-value table API: /api/email/htmlforgex-email-emailkeyvaluetable/