This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

ButtonGroup component

We've added a cool new component for you. It's a list of buttons that together look like a button bar.
Flutter already provides this component out of the box, but without customizing the app you can't use it. To make sure you can use it even without customization, we implemented the ButtonGroup class on the server side.

If you now include the class in a screen like this:

ButtonGroup butgrp = new ButtonGroup();

butgrp.setHorizontalAlignment(IAlignmentConstants.ALIGN_CENTER);
butgrp.setMode(ButtonGroupMode.MultiSelection);

butgrp.setLabels("Left", "Middle", "Right", null, null, "Five");
butgrp.setImages(
  UIImage.getImage(UIImage.OK_SMALL),
  null, null,
  UIImage.getImage(UIImage.TRASH_SMALL),
  UIFontAwesome.getImage(IFontAwesome.ADN_SMALL));

butgrp.eventAction().addListener(this::doButtonGroupChanged)

you will see the following in the latest app:

Button group

Button group

You now have another very helpful component that you can integrate into your custom apps.

Have fun ;-)

Leave a Reply

Spam protection by WP Captcha-Free