Skip to content

Commit 8182459

Browse files
committed
fix menu methods to use setIsCollapsed
1 parent a410d13 commit 8182459

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

apps/kitchen-sink/src/ensemble/screens/layouts.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ View:
2020
header:
2121
title:
2222
Header:
23-
23+
2424
menu:
2525
Drawer:
2626
id: testDrawer
@@ -36,25 +36,25 @@ View:
3636
label: Navigate Home
3737
onTap:
3838
executeCode: |
39-
testDrawer.setCollapsed(true);
39+
testDrawer.setIsCollapsed(true);
4040
ensemble.navigateScreen("Home");
4141
- Button:
4242
label: Navigate to Widgets
4343
onTap:
4444
executeCode: |
45-
testDrawer.setCollapsed(true);
45+
testDrawer.setIsCollapsed(true);
4646
ensemble.navigateScreen("Widgets");
4747
- Button:
4848
label: Navigate to Layouts
4949
onTap:
5050
executeCode: |
51-
testDrawer.setCollapsed(true);
51+
testDrawer.setIsCollapsed(true);
5252
ensemble.navigateScreen("Layouts");
5353
- Button:
5454
label: Close Drawer
5555
onTap:
5656
executeCode: |
57-
testDrawer.setCollapsed(true);
57+
testDrawer.setIsCollapsed(true);
5858
5959
body:
6060
Column:
@@ -151,18 +151,18 @@ View:
151151
label: 2
152152
- Button:
153153
label: FittedColumn
154-
154+
155155
- Markdown:
156156
text: |
157157
## Drawer
158158
159-
Click the button below to open the drawer in the current view. You can place any widgets you would like in the drawer. The drawer can be opened and closed dynamically using the `setCollapsed` method.
159+
Click the button below to open the drawer in the current view. You can place any widgets you would like in the drawer. The drawer can be opened and closed dynamically using the `setIsCollapsed` method.
160160
161161
- Button:
162162
label: open drawer
163163
onTap:
164164
executeCode: |
165-
testDrawer.setCollapsed(false);
165+
testDrawer.setIsCollapsed(false);
166166
167167
- Text:
168168
styles:

apps/kitchen-sink/src/ensemble/screens/menu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ ViewGroup:
114114
name: ArrowBack
115115
onTap:
116116
executeCode: |
117-
sidebar.setCollapsed(!sidebar.isCollapsed)
117+
sidebar.setIsCollapsed(!sidebar.isCollapsed)

0 commit comments

Comments
 (0)