Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Breadcrumbs Component (Experimental)
com.vaadin.experimental.breadcrumbsComponent=true
com.vaadin.experimental.switchComponent=true
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import '@vaadin/slider';
import '@vaadin/slider/vaadin-range-slider.js';
import '@vaadin/slider/src/vaadin-range-slider';
import '@vaadin/split-layout';
import '@vaadin/switch';
import '@vaadin/tabs';
import '@vaadin/tabsheet';
import '@vaadin/tabs/src/vaadin-tab';
Expand Down Expand Up @@ -200,6 +201,7 @@ export class ComponentsView extends View {
<vaadin-checkbox value="2" label="Option two"></vaadin-checkbox>
<vaadin-checkbox value="3" label="Option three"></vaadin-checkbox>
</vaadin-checkbox-group>
<vaadin-switch label="Notifications"></vaadin-switch>
<vaadin-combo-box .items="${[1,2,3,4,5]}"></vaadin-combo-box>
<vaadin-multi-select-combo-box .items="${['apple', 'banana', 'lemon', 'orange']}"></vaadin-multi-select-combo-box>
<vaadin-confirm-dialog></vaadin-confirm-dialog>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import {
SideNavItem,
Slider,
SplitLayout,
Switch;
Comment thread
ZheSun88 marked this conversation as resolved.
Outdated
Tab,
Tabs,
TabSheet,
Expand Down Expand Up @@ -166,6 +167,7 @@ export default function Components() {
<Checkbox value="2" label="Option two"></Checkbox>
<Checkbox value="3" label="Option three"></Checkbox>
</CheckboxGroup>
<vaadin-switch label="Notifications"></vaadin-switch>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use Switch when the next alpha with React component is published, let's wait for it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay..
current platform snapshot is red..
so we can make another PR to update it after the next WC release

<ComboBox items={[1, 2, 3, 4, 5]}></ComboBox>
<MultiSelectComboBox
items={['apple', 'banana', 'lemon', 'orange']}></MultiSelectComboBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import com.vaadin.flow.component.charts.model.ListSeries;
import com.vaadin.flow.component.checkbox.Checkbox;
import com.vaadin.flow.component.checkbox.CheckboxGroup;
import com.vaadin.flow.component.checkbox.Switch;
import com.vaadin.flow.component.combobox.ComboBox;
import com.vaadin.flow.component.combobox.MultiSelectComboBox;
import com.vaadin.flow.component.confirmdialog.ConfirmDialog;
Expand Down Expand Up @@ -319,6 +320,8 @@ public ComponentsView() {
checkboxGroup.addValueChangeListener(event -> log
.log("CheckboxGroup value changed from '" + event.getOldValue() + "' to '" + event.getValue() + "'"));

Switch switchComponent = new Switch("Notification");

ComboBox<String> comboBox = new ComboBox<>("ComboBox label");
comboBox.setItems("First", "Second", "Third");
comboBox.addValueChangeListener(e -> {
Expand Down Expand Up @@ -714,6 +717,7 @@ protected void setPresentationValue(String newPresentationValue) {
components.add(card);
components.add(checkbox);
components.add(checkboxGroup);
components.add(switchComponent);
components.add(comboBox);
components.add(multiSelectComboBox);
components.add(dialogButton);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Breadcrumbs Component (Experimental)
com.vaadin.experimental.breadcrumbsComponent=true
com.vaadin.experimental.switchComponent=true
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.vaadin.flow.component.card.Card;
import com.vaadin.flow.component.checkbox.Checkbox;
import com.vaadin.flow.component.checkbox.CheckboxGroup;
import com.vaadin.flow.component.checkbox.Switch;
import com.vaadin.flow.component.combobox.ComboBox;
import com.vaadin.flow.component.combobox.MultiSelectComboBox;
import com.vaadin.flow.component.confirmdialog.ConfirmDialog;
Expand Down Expand Up @@ -134,6 +135,7 @@ public class EagerView extends Div {
public DecimalSlider slider;
public SplitLayout splitLayout;
public SvgIcon svgIcon;
public Switch switchComponent;
public Tabs tabs;
public Tab tab;
public TabSheet tabSheet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Breadcrumbs Component (Experimental)
com.vaadin.experimental.breadcrumbsComponent=true
com.vaadin.experimental.switchComponent=true
6 changes: 6 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@
"mode": "lit",
"npmName": "@vaadin/split-layout"
},
"switch": {
"jsVersion": "25.3.0-alpha4",
"mode": "lit",
"npmName": "@vaadin/switch"
},
"tabs": {
"jsVersion": "25.3.0-alpha4",
"mode": "lit",
Expand Down Expand Up @@ -456,6 +461,7 @@
"@vaadin/side-nav",
"@vaadin/slider",
"@vaadin/split-layout",
"@vaadin/switch",
"@vaadin/tabs",
"@vaadin/tabsheet",
"@vaadin/text-area",
Expand Down
Loading