Skip to content

Commit 42b390f

Browse files
committed
docs(SDK): Add default property to the ToggleModule
1 parent aa5147c commit 42b390f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playground/extensions/extensions-toggle.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ export const modules = [
3131
export const options = [
3232
ToggleModule.defineToggle({
3333
// The name of the toggle
34+
// replace "myToggle" by the name of the toggle you want to use
3435
toggle: 'myToggle',
3536
// The text displayed over the toggle
3637
title: 'MY TOGGLE',
3738
// The labels for the on/off states of your toggle
3839
values: {
3940
'TOGGLED ON': true,
4041
'TOGGLED OFF': false
41-
}
42+
},
43+
// Default value of your toggle
44+
default: true
4245
}),
4346
ToggleModule.defineToggle({
4447
toggle: 'myOtherToggle',

0 commit comments

Comments
 (0)