Is it possible to make a record into a link? For example, 1 column is a username, every row in that column should be a link to the users profile.
try to use templates
columns:[
{id:"userid", template: "<a href='/link/to/profile?user_id=#userid#'>Show profile</a>"
]
How can I reveal the IDs? Either the template is not working or I use wrong IDs.
It’s a bit tricky as it is wrapped in Vue, but if I make this snippet, only the hardcoded column is displayed?
webix.ui({
columns:[
{id:"Title", template: "<a href='/link/to/profile?user_id=#userid#'>Show profile</a>"},
],
view:"datatable",
autoConfig:true,
data:grid_data,
});
Nevermind, I can actually do it in the scheme.