Premmerce Documentation > Table or Grid > How to Add Hyperlink to a Column Text
About Premmerce
Installation
Table or Grid
CSS and JS
General
/Helpers/TableConfig.cs
> BlogCategoryTableConfig
Hyperlink
value. You can also set whether to open in new tab (HyperlinkInNewTab
).public static List<ColumnProperty> TableColumns = new List<ColumnProperty>() {
new ColumnProperty { HeaderKey =nameof(BlogCategoryViewModel.Name), Hyperlink = $"/blogcategory/[{nameof(BlogCategoryViewModel.UrlSlug)}]", HyperlinkInNewTab=true },
new ColumnProperty { HeaderKey =nameof(BlogCategoryViewModel.CreatedByName)},
new ColumnProperty { HeaderKey =nameof(BlogCategoryViewModel.CreatedOn),IsDateTimeColumn = true,ColumnMinWidth="120" }
};
<aside> ✨
There is another method that can add a hyperlink to the column text. It’s by using the custom HTML template method, which is stated in this page:
</aside>