Skip to main content
richas0003
October 1, 2021
Question

Width of caption of rich text icon

  • October 1, 2021
  • 7 replies
  • 0 views

how to set the width of caption in rich text icon?

a!columnLayout(
contents: {
a!forEach(
items: local!navSectionData,
expression: if(
local!collapseNav,
{
a!richTextDisplayField(
value: {
a!richTextIcon(
icon: fv!item.icon,
caption: fv!item.description,
link: if(
not(rule!APN_isEmpty(fv!item.processModel)),
a!startProcessLink(
processModel: fv!item.processModel,
processParameters: {
isNew:true()
}),

a!dynamicLink(
value: fv!item.id,
saveInto: local!activeCollapsibleNavSection
)
),
linkStyle: "STANDALONE",

7 replies

peter.lewis
Employee
October 1, 2021

As far as I know it isn't possible to define the width of the caption - can you describe your use case for why this is necessary? Typically it will adjust automatically based on the location / size of your interface. Also in general I'd suggest keeping captions relatively short - if you have a large amount of instructional text I'd suggest thinking of other ways to show the information - maybe a link to a section with more details?

richas0003
October 1, 2021

as i'm using many navigation bar there are many icons and all have different captions and the length are also different which doesn't look good  so i was tiring to make caption background width same