How to add extra spaces in a text field for better display?

I want more than one space to be inserted between two words in a text field. 

I have used below code, but it is not working.

a!textField(
label: "Approved: 5"& "                 Closed: 7",
readOnly: true()
)

I want to display the content in this way. Is there any way to do it.  

  Discussion posts and replies are publicly visible

Parents Reply
  • AFAIK we cannot add spaces for text field label , We can able to add only for value attribute.
    Please find above thread .

     suggestion we can also go with sideBySideLayout:

     

    a!sectionLayout(
    label:"Previous Results",
    contents:{
    a!sideBySideLayout(
    items:{
    a!sideBySideItem(
    item: a!textField(label:"Approved:",labelPosition:"ADJACENT",value:5,readOnly: true()),
    width:"MINIMIZE"
    ),
    a!sideBySideItem(
    item: a!textField(label:"Closed:",labelPosition:"ADJACENT",value:7,readOnly: true()),
    width:"MINIMIZE"
    ),
    a!sideBySideItem(
    item: a!textField(label:"Viloations:",labelPosition:"ADJACENT",value:10,readOnly: true()),
    width:"MINIMIZE"
    )
    }
    )
    }
    )

Children
No Data