Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #104326
    jqwidgetsdev
    Participant

    Hi,

    I was wondering in a smart form how to have a control that shows 1) a label and 2) contents directly below it, *without* the text box?

    The snippet below for some reason also shows the text box. I don’t want the datafield value to be editable.

     controls: [
    {
    label: "Uptime",
    dataField: "uptime",
    },
    

    Thanks.

    #104329

    Hi,

    You can do the following to display a label with the value
    {
    label: “Uptime”,
    dataField: “uptime”,
    controlType: ‘template’,
    }

     

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

    #104330
    jqwidgetsdev
    Participant

    Thanks Svetoslav, your suggestion worked like a charm.

    Best regards.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.