Segment widget

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I have an issue with segment which is when I click on the segment row, the flex container colour will be blocked/covered. I have set segment's rowFocus skin to 0 opacity, it still block the flex container colour. I have tried creating a label with background colour, it didn't cover it when the row was pressed.

Attached is an example for a better picture.

Hello,

Can you please check the below, might helpful for you. If not you can provide more details about the problem.

https://basecamp.kony.com/s/question/0D56A00000AnrmQSAR/?t=1520327043043

Possible to provide the sample application again? The one in the provided link is no longer available. Thank you.

@Twvcey Rvndvll​ , eventhough I have set highlightOnParentFocus to false OR use a highlightskin with 0 opacity, the focus skin is still the default white color.

I am trying to disable the rowFocus skin which will take over the flxColor skin. I want the flxColor skin to remain on row click.

@Twvcey Rvndvll​ , any updates ?

Hi Samuel,

Can you try the below code snippet, meanwhile I will check the working app and share with you,

In the given syntax, we have a rowTemplate with one flex and label.

frmSegment.Segment06deccb2899f448.widgetDataMap={lbl1:"lbl1", flxTemp:"flxTemp", flx1:"flx1" };

var sData=[

{lbl1:"Segment Data 1", flxTemp:{"highlightOnParentFocus":true, "highlightedSkin":"flxSkinFocus"}, flx1:{"highlightOnParentFocus":true, "highlightedSkin":"flxSkin"}},

{lbl1:"Segment Data 2", flxTemp:{"highlightOnParentFocus":true, "highlightedSkin":"flxSkinFocus"}, flx1:{"highlightOnParentFocus":true, "highlightedSkin":"flxSkin"}},

{lbl1:"Segment Data 3", flxTemp:{"highlightOnParentFocus":true, "highlightedSkin":"flxSkinFocus"}, flx1:{"highlightOnParentFocus":true, "highlightedSkin":"flxSkin"}}

];

frmSegment.Segment06deccb2899f448.setData(sData);

Hi,

Did my response help you? If yes, make sure you click [Select as Best] under the response to close out the post.

@Twvcey Rvndvll​ Hi Shaik, it did not work, still cant overwrite the default iOS row focus skin.

How to achieve alternative row colors in segment?