Posts

Showing posts from September, 2022
Image
 How to create Custom Toggle Button in Vaadin (flow) // Try this code... // 1). Created custom Toggle Button using Vaadin Flow. // 2). No dependencies. // 3). You can change its color as per your requirement.                  package com.vaadin.ui.customcomponents;         import com.vaadin.flow.component.orderedlayout.HorizontalLayout;         import com.vaadin.flow.component.orderedlayout.VerticalLayout;                  public class CustomToggleButton extends VerticalLayout {                      public static final String UNCHECKED_BACKGROUND_COLOR = "#CCCCCC";             public static final String CHECKED_BACKGROUND_COLOR = "#3375C2";             public static final String CIRCLE_COLOR = "#FFFFFF";           ...