JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › smart form control without text box
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.
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/
Thanks Svetoslav, your suggestion worked like a charm.
Best regards.