Show / hide UI components

UI components can be shown and hidden as required. If the UI component is in a layout, the UI components are automatically arranged differently, if necessary.

Property:

  • Visible - The flag initially shows / hides the UI component at runtime.

Example:

  • Hide UI component dynamically - If the UI component is in a layout, the UI components in the layout will be rearranged if necessary.

button.setVisible(false);

image not found

  • Dynamically show UI component - If the UI component is in a layout, the UI components in the layout will be rearranged if necessary.

    button.setVisible(true);

image not found