How to suppress line breaks in APEX IR column using inline style attribute
Today we will see how to suppress line breaks in APEX IR column cells. Keeping rows single lines saves space and having them equal height facilitates to consume the information.
We will use Leads Grid (Interactive Report) region in APEX Opportunities sample application, Page 19 - Leads.
Before
After
Column ACCOUNT_NAME (Type Link)
Link | Link Text
<span style="white-space: nowrap;">#ACCOUNT_NAME#</span>
Column CREATED (Type Plain Text)
Column Formatting | HTML Expression
<span style="white-space: nowrap;">#CREATED#</span>
The white-space CSS property sets how white space inside an element is handled. Initial value is normal, but it must be set to nowrap to suppress line breaks (text wrapping).