warn(`createListRenderer: label() parameter has to be either a string (which renders [@my-string].fields.my-field) or a function which returns a string`);
}
};
// generate a link
letlink=func=>
{
if(typeoffunc==='string')
{
config.link=(item,$router)=>$router.push({
name:func,
params:{id:item.id}
});
}
elseif(typeoffunc==='function')
{
config.link=func;
}
else
{
warn(`createListRenderer: link() parameter has to be either a string (which calls $router.push({ name: [my-string], params: { id: [item.id] } }) or a function which is called on click`);