Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SectionItem with icon/button

$
0
0
All,

I need a specific interaction in my forms and I'm trying to figure out the best way to accomplish it...

I basically need a divider in a form that can show/hide other formitems below it and that also has an add button on the far right that can be clicked so I can add a field to the form.

I thought I needed to use either a SectionItem with an icon/button on the far right, or I need a HeaderItem with a button and the ability to show/hide other fields by clicking it (I essentially created one of these from scratch with a CanvasItem, but didn't implement the show/hide of other fields). Or will something else do what I need?

I was able to add a PickerIcon to a SectionItem, but it looks a bit odd (though I think I could make it work and look ok), but the real problem is when I click the icon and it triggers my FormItemIconClickHandler, it also causes the section to expand/collapse, which I don't want. I ddin't see any way to stop the event and I wasn't sure how else to make this work.

Any ideas or recommendations?

I'm using Isomorphic SmartClient/SmartGWT Framework (v9.0p_2013-09-17/Pro Deployment 2013-09-17)

Thanks,
Brian

Viewing all articles
Browse latest Browse all 4756

Trending Articles