I want to be able to dynamically set the column headers. The title attribute of the columns is not sufficient, see below:
columns: [
{ field: "CustomerNumber", title: "Customer Number", attributes: { style: "white-space: nowrap" } },
{ field: "CustomerName", title: "Customer", attributes: { style: "white-space: nowrap" } },
{ field: "InvitationEmail", title: "Email", template: "<a href=\"mailto:#=InvitationEmail#\">#=InvitationEmail#</a>", attributes: { style: "white-space: nowrap" }},
]
How do I set the title dynamically? These values typically come from the resource file.
columns: [
{ field: "CustomerNumber", title: "Customer Number", attributes: { style: "white-space: nowrap" } },
{ field: "CustomerName", title: "Customer", attributes: { style: "white-space: nowrap" } },
{ field: "InvitationEmail", title: "Email", template: "<a href=\"mailto:#=InvitationEmail#\">#=InvitationEmail#</a>", attributes: { style: "white-space: nowrap" }},
]
How do I set the title dynamically? These values typically come from the resource file.