Hi,
How can I achieve the below user experience. Like layouts, fields ..etc. Font color can be blank.
Thank you in advance.
Discussion posts and replies are publicly visible
In the interface designer in the patterns pane, test the tabs patterns.
a!localVariables( local!selectedTab: 1, local!tabs: { "test1", "test2","test3" }, { a!buttonArrayLayout( buttons: { a!buttonWidget( label: "test", size: "SMALL", style: if(local!selectedTab = 1, "SOLID", "LINK"), saveInto: a!save(local!selectedTab, 1), ), a!buttonWidget( label: "test2", size: "SMALL", style: if(local!selectedTab = 2, "SOLID", "LINK"), saveInto: a!save(local!selectedTab, 2) ), a!buttonWidget( label: "test2", size: "SMALL", style: if(local!selectedTab = 3, "SOLID", "LINK"), saveInto: a!save(local!selectedTab, 3) ) } ), choose( local!selectedTab, { a!richTextDisplayField( labelPosition: "COLLAPSED", value: {a!richTextItem(text: "The contents of the first tab would go here", style: "EMPHASIS")}, align: "CENTER" ) }, { a!richTextDisplayField( labelPosition: "COLLAPSED", value: {a!richTextItem(text: "The contents of the second tab would go here", style: "EMPHASIS")}, align: "CENTER" ) }, { a!richTextDisplayField( labelPosition: "COLLAPSED", value: {a!richTextItem(text: "The contents of the third tab would go here", style: "EMPHASIS")}, align: "CENTER" ) } ) } )
ak0642 You can find pattern for same in interface.
Tabs Patterns Please have a look at this from the documentation.
Everyone else is suggesting the "Tabs" pattern which uses buttons to simulate this. However, depending on what you're trying to do, the Tag component actually might be better. The style is more similar to what you have in your image, and there is more flexibility for formatting.
Basically the difference for them is:
Buttons I cannot take because buttons has a default behavior of taking label as capital case, which should not happen.
Tabs pattern will not work because these values should be dynamic. Eg: Test1 will show group of columns, test 2 should group another group of columns...etc.
tags will not work, because those should be clickable.
ak0642 said:Tabs pattern will not work because these values should be dynamic. Eg: Test1 will show group of columns, test 2 should group another group of columns...etc.
Why won't this work? I mean you have to adapt the tabs pattern to what you need, but there's no reason this can't be dynamic if you're using the rich text or the card options.
Also if at all possible, in the future please try to provide any context like this when you make your original post - that can help us provide you a solution more quickly
ak0642 said: taking label as capital case, which should not happen.
This can be done. You need to use the below format. I didn't simplify this. Just copying it from here and creating a button widget. Refer the link and redo the code according to your requirement.
A code block given by amiteshsin for the confirmation message
a!buttonWidget( label: a!localVariables( local!lRange: 120302 - 97, local!uRange: 120276 - 65, joinarray( char( a!forEach( items: code("box man"), expression: a!match( value: fv!item, whenTrue: and(fv!value > 96, fv!value < 123, ), then: fv!value + local!lRange, whenTrue: and(fv!value > 64, fv!value < 91, ), then: fv!value + local!uRange, default: fv!value ) ) ), "" ) ), )
You can do it in other ways if not buttons. Just need to tell us the requirement more clearly.
ak0642 - try to use tab pattern (available under interface patterns)