DataTables-Editor: How to display a value in custom-modal-template?

DataTables-Editor: How to display a value in custom-modal-template?

mattomediamattomedia Posts: 8Questions: 1Answers: 0
edited June 2022 in Free community support

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

  • mattomediamattomedia Posts: 8Questions: 1Answers: 0

    Code-Block-Formatting didn´t work.

    {
    label: "Label:",
    name: "data.name",
    type:'readonly',
    attr: {
    disabled: true
    }
    }

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Answer ✓

    The code block formatting didn't work as you had spaces before the back ticks. I've edited it to correct that.

    But is there a way to only display the data and not render an input?

    Yes, use this plug-in which will do that.

    Allan

  • mattomediamattomedia Posts: 8Questions: 1Answers: 0

    Thank you. Works just fine!

Sign In or Register to comment.