Rendering columns with custom tags
Rendering columns with custom tags
Hi, I'm using inertiajs to create links via the <Link> tag, but when they get rendered, they appear as <link> therefore does not work. Is there any way to render such tags?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
HTML is not case sensitive. We just use
.innerHTMLfor the cell content by default, so I suspect the behaviour you are seeing comes form the browser?I've not used inertiajs - does it depend upon case?
Allan
To be precise, Vuejs is case sensitive.
Since inertiajs imports are used in Vuejs context, then, yes:
<Link>differs from<link>. It renders fine when using in Vuejs context, but not when rendering via DataTables. Please also see this.Here's the problematic code:
So the
<Link>tag is rendered as<link>, therefore it is not transpiled correctly.Probably, it is being rendered as a
<link>HTML5 tag, which is a valid HTML5 tag and therefore an interference?Thanks for the clarification. Unfortunately, at this time, it is not possible to use components in the results returned from
render. That is something I would like to address in future.Sorry!
Allan