DataTables-Editor: How to display a value in custom-modal-template?
DataTables-Editor: How to display a value in custom-modal-template?
mattomedia
Posts: 8Questions: 1Answers: 0
I want to only display a value in an custom-modal.
If I use <editor-field name="data.name"></editor-field>
it renders to an input field.
I can bypass the edit-function via
{
label: "Label:",
name: "data.name",
type:'readonly',
attr: {
disabled: true
}
}
But is there a way to only display the data and not render an input?
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This question has an accepted answers - jump to answer
Answers
Code-Block-Formatting didn´t work.
{
label: "Label:",
name: "data.name",
type:'readonly',
attr: {
disabled: true
}
}
The code block formatting didn't work as you had spaces before the back ticks. I've edited it to correct that.
Yes, use this plug-in which will do that.
Allan
Thank you. Works just fine!