-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynaboard.yml
More file actions
1880 lines (1842 loc) · 54.5 KB
/
dynaboard.yml
File metadata and controls
1880 lines (1842 loc) · 54.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
runtimeVersion: 0.4.1
name: Getting Started
description: ''
type: com.dynaboard/project
nodes:
ROOT_NODE:
type: ROOT_NODE
name: ROOT_NODE
slots:
components:
- nodeID: 61af232e-6b81-4544-8f00-c943e7c083a2
orderKey: a0
pages:
- nodeID: 5aeb3de9-5348-4253-9b66-8f1c9d57b6a6
orderKey: a0
- nodeID: a58f0ad0-bc5d-417d-aace-8d94dffc2c7b
orderKey: a0V
- nodeID: 04ad44ef-195b-47a0-b261-f8bcb73fb459
orderKey: a0l
resources:
- nodeID: 8f34af83-c724-4818-a0a9-4cbac532cfd5
orderKey: a0
- nodeID: 7818a6f7-3096-4a64-baf7-9fb2c3166de0
orderKey: a1
- nodeID: c038db71-e096-4432-bf8d-3e8bad052f6a
orderKey: a2
- nodeID: 1f81be44-bd5c-4161-a6e9-bebf92ca8a46
orderKey: a3
012aa7b7-a9d6-4e4b-a955-34295e508f10:
type: LOCAL_VARIABLE
name: isHovered
properties:
value: 'false'
023e3997-1820-4356-8920-22a1e22776c1:
type: TEXT
name: textStepFirstComponentArea
properties:
fontSize: xl
fontWeight: bold
height: '2'
isEnabled: '{{true}}'
isVisible: '{{true}}'
left: '4'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
textAlign: center
top: '11'
value: Drag a Component Here!
width: '6'
028529de-c8cf-4ea7-b57e-6e8467e32d35:
type: CONTAINER
name: spacer
properties:
isVisible: '{{true}}'
isEnabled: '{{true}}'
top: NaN
left: NaN
width: fill
minWidth: none
maxWidth: none
height: 112px
minHeight: none
maxHeight: none
backgroundColor: ''
borderRadius: '0'
04ad44ef-195b-47a0-b261-f8bcb73fb459:
type: PAGE
name: templates
slots:
canvas:
- nodeID: 3273257f-e1c9-4698-92c2-c8d49cf3ff30
orderKey: a0
- nodeID: b46e2861-e155-4e98-94af-18fb160fe735
orderKey: Zz
- nodeID: 065f5066-9fc8-4136-a27c-82fccbfd31b1
orderKey: a1
- nodeID: 48d9fd9c-86a9-421f-9c3a-b7d595524ed1
orderKey: ZzV
properties:
footerProps:
element: ''
headerProps:
element: ''
includeInSitemap: '{{true}}'
layoutStyle: VERTICAL_STACK
leftSidebarOpen: '{{true}}'
leftSidebarProps:
element: ''
minWidth: 768px
rightSidebarOpen: '{{true}}'
rightSidebarProps:
element: ''
spacing: '8'
065f5066-9fc8-4136-a27c-82fccbfd31b1:
type: CONTAINER
name: spacer
properties:
isVisible: '{{true}}'
isEnabled: '{{true}}'
top: NaN
left: NaN
width: fill
minWidth: none
maxWidth: none
height: 80px
minHeight: none
maxHeight: none
backgroundColor: ''
borderRadius: '0'
0a2f59fc-e7d1-4178-ac3d-09cb4c0e04f3:
type: TEXT
name: textHeader
properties:
fontSize: 3xl
fontWeight: bold
height: 60px
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: Welcome to Dynaboard!
width: fill
1e33b59d-d7b9-4230-bf59-6bd887aef34c:
type: FUNCTION
name: exampleDataBindingFunction
properties:
action:
actionType: POP_TOAST
dismissButton: Yum!
duration: 5000
message: I'm a {{inputStepBasicDataBinding.value || "Basic"}} toast!
path: ''
target: _self
targetNode:
ref: 8f34af83-c724-4818-a0a9-4cbac532cfd5
variant: primary
isEnabled: '{{true}}'
loading: '{{false}}'
runOnPageLoad: '{{false}}'
1f81be44-bd5c-4161-a6e9-bebf92ca8a46:
type: RESOURCE/ONE_TIME_PIN_AUTH
name: oneTimePinAuth1
properties:
profiles:
- environment: ''
isSignInProvider: '{{true}}'
27b866cc-0a43-4095-a3ef-950a03367663:
type: TEXT
name: textStepInteractingWithComponentsHeader
properties:
fontSize: xl
fontWeight: bold
height: '1'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: 2) Interacting with Components
verticalAlign: bottom
width: '12'
27d01e5e-95d7-4024-a816-c382f8b1fc69:
type: TEXT
name: textStepFirstComponentHeader
properties:
fontSize: xl
fontWeight: bold
height: '1'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: 3) Add Your First Component
verticalAlign: bottom
width: '12'
29bd4661-e2aa-40e0-bb02-df08e21ad388:
type: TEXT
name: textSubheader
properties:
height: 80px
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: ''
top: '5'
value: >-
This getting started guide is here to help you learn the ins and outs of
Dynaboard in just a few minutes. Once you've learned the basics we have
example apps, boilerplates, and [additional
documentation](https://dynaboard.com/docs) to help you start building!
verticalAlign: top
width: fill
30d8badd-70d9-4414-97b6-e07287e59f0c:
type: TEXT
name: textStepMakeThingsDynamicSubtitle
properties:
height: '7'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: ''
top: '2'
value: >-
Now that you know how to interact with and select components to edit,
let's learn more about how to make them dynamically respond to data!
Our "double-curly" syntax `{{ "{\{ \}\}" }}` lets you write code nearly
anywhere you want (in nearly every property on both components and
resources). We call this data binding, and we'll practice it in the next
section. Switch back to `Test` mode and click the button below.
verticalAlign: top
width: '12'
326d90c8-eb46-4b88-943d-a9545ac28c63:
type: CHART
name: chartAdvancedJS
properties:
allowLegend: '{{false}}'
dataSource: |-
{{
Object.entries(
getRandomExampleData.data.data.reduce((accumulator, currentValue) => {
if (!accumulator[currentValue.accountType]) {
accumulator[currentValue.accountType] = 1
} else {
accumulator[currentValue.accountType]++
}
return accumulator
}, {})
).map((entry) => {
return { accountType: entry[0], accountCount: entry[1] }
})
}}
dimensions:
- id: 410a976e-e589-4100-82b6-9b73aa074fe8
key: Untitled Dimension 1
lineShape: spline
markerColor: purple.500
mode: lines
name: '# of Accounts'
side: left
type: bar
yKey: accountCount
height: '20'
horizontalAxisTitle: Account Type
isEnabled: '{{true}}'
isInteractive: 'false'
isVisible: '{{true}}'
leftVerticalAxisTitle: '# of Accounts'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
title: Number of Accounts by Type
top: '6'
width: '12'
xKey: accountType
3273257f-e1c9-4698-92c2-c8d49cf3ff30:
type: ITERATOR
name: templateList
properties:
backgroundColor: none
component: COMPONENT/61af232e-6b81-4544-8f00-c943e7c083a2
data: |-
[
{
templateImageLinkDark:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateUsersDark.png",
templateImageLinkLight:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateUsersLight.png",
templateTitleText: "User Admin Panel",
templateDescText:
"See how to build a data-driven UI in Dynaboard involving the data table.",
cardLink: "https://dynaboard.new/dynaboard/dynaboard--data-table",
},
{
templateImageLinkDark:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateGPTDark.png",
templateImageLinkLight:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateGPTLight.png",
templateTitleText: "GPT-3 Playground",
templateDescText:
"Get a head start on building your own GPT-3-powered application with a pre-built UI and included prompt examples.",
cardLink: "https://dynaboard.new/dynaboard/dynaboard--gpt3-playground",
},
{
templateImageLinkDark:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateDemosDark.png",
templateImageLinkLight:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateDemosLight.png",
templateTitleText: "Lightning Demos",
templateDescText:
"Experience a complete application that leverages Dynaboard's built-in KV store for application storage.",
cardLink: "https://dynaboard.new/dynaboard/dynaboard--lightning-demos",
},
{
templateImageLinkDark:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateFeedDark.png",
templateImageLinkLight:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateFeedLight.png",
templateTitleText: "Hacker News Clone",
templateDescText:
"Explore the advanced styling capabilities of Dynaboard, and see an example of a UI involving custom components.",
cardLink: "https://dynaboard.new/dynaboard/dynaboard--hacker-news",
},
{
templateImageLinkDark:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateVizDark.png",
templateImageLinkLight:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templateVizLight.png",
templateTitleText: "Charts UI",
templateDescText:
"Dive into the charting capabilities of Dynaboard with a couple of different examples.",
cardLink: "https://dynaboard.new/dynaboard/dynaboard--charts",
},
{
templateImageLinkDark:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templatePrivateAppDark.png",
templateImageLinkLight:
"https://storage.googleapis.com/dynaboard-demo/TemplateImages/templatePrivateAppLight.png",
templateTitleText: "Private App Boilerplate",
templateDescText:
"Learn how to build a private application in Dynaboard that requires authentication and how to secure it.",
cardLink:
"https://dynaboard.new/dynaboard/dynaboard--private-app-boilerplate",
},
]
distributeContent: around
height: fill
isEnabled: '{{true}}'
isVisible: '{{true}}'
layoutStyle: HORIZONTAL_STACK
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
top: '6'
width: fill
wrapContent: wrap
391855d8-83c4-421c-96ed-79d6be6f0d77:
type: TEXT
name: textStepFirstComponentBody
properties:
height: '6'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: ''
top: '2'
value: >-
The data table, input, and dropdown are just a few of the UI components
available in Dynaboard, so let's try adding some more components to this
page. If you haven't already, switch back to `Edit` mode and check them
out in the toolbar at the top of the screen.
Once you've found a component you'd like to see, try dragging it into
the container below. You can also delete the component by selecting it
and pressing delete on your keyboard.
verticalAlign: top
width: '12'
3dac381d-0c42-4b83-b852-d399441bf6a0:
type: CONTAINER
name: containerComponent
slots:
canvas:
- nodeID: 023e3997-1820-4356-8920-22a1e22776c1
orderKey: a0
properties:
backgroundColor: surface.200
borderRadius: '0'
gridRowHeight: '16'
gridRows: '0'
height: '18'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
top: '9'
width: '12'
4298f146-c2ef-48a5-bebf-eca74cf71723:
type: FUNCTION
name: nextPage
properties:
action:
actionType: NAVIGATE_TO_PAGE
path: /templates
target: _self
targetNode:
ref: 8f34af83-c724-4818-a0a9-4cbac532cfd5
isEnabled: '{{true}}'
loading: '{{false}}'
runOnPageLoad: '{{false}}'
4503712d-3187-402a-a8b4-4d37c68d14d9:
type: TEXT
name: textStepDataBindingInFunctionsHeader
properties:
fontSize: xl
fontWeight: bold
height: '1'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: 2) Dynamic Behavior Inside of Functions
verticalAlign: bottom
width: '12'
48d9fd9c-86a9-421f-9c3a-b7d595524ed1:
type: TEXT
name: textSubheader
properties:
isVisible: '{{true}}'
isEnabled: '{{true}}'
top: NaN
left: NaN
width: fill
minWidth: none
maxWidth: none
minHeight: none
maxHeight: none
value: Click on a template to explore further.
showExternalIndicator: '{{false}}'
fontStyle: italic
4bfa8df2-4df1-4a01-b8ea-3d6404038d18:
type: TEXT
name: descText
properties:
fontSize: sm
height: '4'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: |-
element.styles {
padding-x: 8px;
}
top: '13'
value: '{{ $props.templateDescText }}'
verticalAlign: top
width: '12'
4dc07e3e-403d-499d-ad85-d8276a8b3bb6:
type: INPUT
name: inputStepBasicDataBinding
properties:
height: '2'
isClearable: '{{false}}'
isEnabled: '{{true}}'
isRequired: '{{false}}'
isVisible: '{{true}}'
label: ''
left: '2'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
placeholder: Basic
top: '8'
width: '10'
51f3641d-40a2-427d-93b0-15de34669fc6:
type: TEXT
name: textStepAdvancedJSHeader
properties:
fontSize: xl
fontWeight: bold
height: '1'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: 3) Advanced JavaScript Example
verticalAlign: bottom
width: '12'
55ff6f4e-a38f-4649-aada-3ce074dce023:
type: CONTAINER
name: stepBasicDataBinding
slots:
canvas:
- nodeID: d0d4161b-ad10-46a8-92ac-493b442caa22
orderKey: Zx
- nodeID: deacc279-17c8-47c2-ba93-28fa0bc45e3e
orderKey: ZxV
- nodeID: 4dc07e3e-403d-499d-ad85-d8276a8b3bb6
orderKey: Zy
- nodeID: 86be3c07-c257-4a81-ba5d-727e7f0b5fef
orderKey: ZzV
properties:
backgroundColor: surface.100
borderRadius: '5'
gridRowHeight: '22'
gridRows: '0'
height: 364px
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
styles: |-
element.styles {
border-width: 1px;
border-color: text.muted;
}
top: '11'
width: fill
56967eac-f86e-46b9-b5ff-5d9afe635432:
type: CONTAINER
name: stepLetsGetStarted
slots:
canvas:
- nodeID: fedeac1a-159b-4e19-af31-49aab150ab28
orderKey: Zv
- nodeID: 76169d73-f4ef-4df8-99a4-0d46b3c50ab5
orderKey: Zz
- nodeID: 601de6dc-8e7d-4935-a2f1-11914abd9944
orderKey: ZzV
properties:
backgroundColor: surface.100
borderRadius: '5'
gridRowHeight: '22'
gridRows: '0'
height: fill
isEnabled: '{{true}}'
isVisible: '{{true}}'
left: NaN
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
styles: |-
element.styles {
border-width: 1px;
border-color: text.muted;
}
top: NaN
width: fill
590f0a9f-7b03-4cfc-a76c-79689c4a9e7c:
type: CONTAINER
name: stepFirstComponent
slots:
canvas:
- nodeID: 391855d8-83c4-421c-96ed-79d6be6f0d77
orderKey: Zz
- nodeID: 27d01e5e-95d7-4024-a816-c382f8b1fc69
orderKey: Zy
- nodeID: 3dac381d-0c42-4b83-b852-d399441bf6a0
orderKey: Zx
properties:
backgroundColor: surface.100
borderRadius: '5'
gridRowHeight: '22'
gridRows: '0'
height: 620px
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
styles: |-
element.styles {
border-width: 1px;
border-color: text.muted;
}
top: '80'
width: fill
5aeb3de9-5348-4253-9b66-8f1c9d57b6a6:
type: PAGE
name: index
slots:
canvas:
- nodeID: 0a2f59fc-e7d1-4178-ac3d-09cb4c0e04f3
orderKey: Zr
- nodeID: 29bd4661-e2aa-40e0-bb02-df08e21ad388
orderKey: Zs
- nodeID: 56967eac-f86e-46b9-b5ff-5d9afe635432
orderKey: Zt
- nodeID: f1ba9371-abac-423d-9f17-00e6a54e1a3a
orderKey: Zu
- nodeID: 590f0a9f-7b03-4cfc-a76c-79689c4a9e7c
orderKey: Zv
- nodeID: d0bb41c4-ad04-4d6e-868e-eec0f4d13c8c
orderKey: Zx
- nodeID: 8b7ab47e-914b-4e6e-82d7-8330106fa4c5
orderKey: Zy
functions:
- nodeID: 8cba5efc-01ce-402f-832e-0ab517766f2d
orderKey: a0
- nodeID: 65bbb933-2f04-4796-afe7-506194721d32
orderKey: Zz
properties:
layoutStyle: VERTICAL_STACK
minHeight: 1280px
minWidth: 768px
styles: |-
element.styles {
}
spacing: '8'
headerProps: {}
leftSidebarProps: {}
rightSidebarProps: {}
footerProps: {}
601de6dc-8e7d-4935-a2f1-11914abd9944:
type: INLINE_REACT
name: iconStepLetsGetStarted
properties:
componentSource: |-
return function Component() {
return (
<div className="size">
<svg viewBox="0 0 16 16" focusable="false"><g fill="none" fill-rule="evenodd"><path fill="rgb(105, 103, 226)" d="M6.39694 0C5.51572 0 4.79694 0.718781 4.79694 1.6V8.95242L4.32073 8.47621C3.68578 7.84126 2.70809 7.84126 2.07315 8.47621C1.53992 9.00943 1.48033 9.85322 2.00651 10.6425C2.12544 10.8209 2.27822 11.0682 2.45695 11.3574L2.457 11.3575C2.87213 12.0293 3.4272 12.9276 4.02308 13.7157C4.45711 14.2897 4.94057 14.8459 5.45285 15.263C5.9572 15.6737 6.5512 16 7.19694 16H10.0769C11.252 16 12.3417 15.6326 13.1459 14.9366C13.9574 14.2344 14.4503 13.2201 14.4503 12V8C14.4503 7.11878 13.7315 6.4 12.8503 6.4C12.6303 6.4 12.4132 6.44623 12.2121 6.53067C12.0328 5.84327 11.4058 5.33335 10.6636 5.33335C10.4556 5.33335 10.2566 5.3734 10.074 5.44619C9.8886 4.76781 9.26606 4.2667 8.53027 4.2667C8.34342 4.2667 8.16388 4.29901 7.99694 4.35834V1.6C7.99694 0.718781 7.27816 0 6.39694 0ZM6.93027 5.86365C6.93027 5.86467 6.93027 5.86568 6.93027 5.8667L6.93027 8.53333C6.93027 8.82789 7.16905 9.06667 7.46361 9.06667C7.75816 9.06667 7.99694 8.82789 7.99694 8.53333V5.86495C7.9979 5.57362 8.23874 5.33336 8.53027 5.33336C8.82238 5.33336 9.0636 5.57458 9.0636 5.8667V6.9316L9.0636 6.93335V8.53335L9.0636 8.53336C9.0636 8.74213 9.18355 8.92288 9.35829 9.01046C9.43009 9.04644 9.51115 9.0667 9.59694 9.0667C9.78103 9.0667 9.94334 8.97342 10.0392 8.83156C10.0967 8.74644 10.1303 8.64382 10.1303 8.53336V8.53335V6.93335C10.1303 6.64124 10.3715 6.40002 10.6636 6.40002C10.9557 6.40002 11.1969 6.64124 11.1969 6.93335V8.53335C11.1969 8.82791 11.4357 9.06669 11.7303 9.06669C12.0248 9.06669 12.2636 8.82791 12.2636 8.53335L12.2636 8.53333V8C12.2636 7.74083 12.5241 7.46667 12.8503 7.46667C13.1424 7.46667 13.3836 7.70789 13.3836 8V12C13.3836 12.9133 13.0231 13.6323 12.4479 14.13C11.8655 14.6341 11.0352 14.9333 10.0769 14.9333H7.19694C6.90934 14.9333 6.55163 14.7821 6.12635 14.4358C5.70901 14.096 5.28491 13.6159 4.8739 13.0723C4.30692 12.3225 3.81624 11.5272 3.41222 10.8723L3.4122 10.8723C3.21937 10.5598 3.04627 10.2792 2.89403 10.0508C2.73854 9.81759 2.70253 9.63454 2.70811 9.51184C2.71364 9.39048 2.76036 9.29749 2.82739 9.23046C3.04578 9.01207 3.34809 9.01207 3.56648 9.23046L4.95315 10.6171C5.10568 10.7697 5.33507 10.8153 5.53437 10.7327C5.73366 10.6502 5.8636 10.4557 5.8636 10.24V1.6C5.8636 1.30789 6.10482 1.06667 6.39694 1.06667C6.68905 1.06667 6.93027 1.30789 6.93027 1.6V5.86365Z"></path></g></svg>
</div>
)
}
height: '3'
isEnabled: '{{true}}'
isVisible: '{{true}}'
left: '11'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
styles: |-
.size {
width: 64px;
height: 64px;
}
top: '3'
width: '1'
61af232e-6b81-4544-8f00-c943e7c083a2:
type: COMPONENT
name: templateCard
slots:
canvas:
- nodeID: fe6a3b00-f219-4206-84f0-43573e303287
orderKey: Zx
functions:
- nodeID: b42829d1-aa52-43c2-8ee4-9ea82493b792
orderKey: a0
- nodeID: 9418e4db-0967-4db8-9668-306a872d2f98
orderKey: a1
- nodeID: 9f82d272-1437-45d7-9c81-75a56afce5fb
orderKey: a2
variables:
- nodeID: 012aa7b7-a9d6-4e4b-a955-34295e508f10
orderKey: a0
properties:
height: 338px
maxWidth: 420px
minWidth: 340px
overflow: visible
width: '{{ $app.viewportWidth < 1024 ? ''340px'' : ''420px'' }}'
props:
- id: a7f3279e-01e7-4743-adb1-a2631c4743c0
key: templateImageLinkDark
displayName: ''
description: ''
propType: string
defaultValue: >-
https://dynaboard.app/_next/image?url=https%3A%2F%2Fapp-cdn.dynaboard.app%2Fportal-app%2F_next%2Fstatic%2Fmedia%2FtemplateGPTDark.70117c38.png&w=640&q=75
- id: ae03d5ff-200e-4df5-8533-de4012932243
key: templateImageLinkLight
description: ''
propType: string
defaultValue: >-
https://dynaboard.app/_next/image?url=https%3A%2F%2Fapp-cdn.dynaboard.app%2Fportal-app%2F_next%2Fstatic%2Fmedia%2FtemplateGPTLight.eb1c3bb2.png&w=640&q=75
- id: 25b7aa4b-d5d2-4f97-8dfd-6567560c78b7
key: templateTitleText
displayName: Template Title
description: ''
propType: string
defaultValue: Example Template
- id: 5b1ce7b8-352d-49e1-9bd6-21d09982ece6
key: templateDescText
displayName: Template Description
description: ''
propType: string
defaultValue: >-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
- id: faa65410-677a-4307-b04b-a4a9ae7f2fb4
key: cardLink
displayName: link
description: ''
propType: string
defaultValue: https://dynaboard.new/
652f196d-4253-4f9c-85b8-1f844f60937f:
type: CONTAINER
name: stepNextUp
slots:
canvas:
- nodeID: b64f391f-38be-4947-bf38-496abb546f3a
orderKey: Zy
- nodeID: 83ec7aea-9262-46aa-a18f-4badca4579e2
orderKey: Zz
- nodeID: f9f22903-fa56-4182-b327-af0acdec0d36
orderKey: a0
properties:
backgroundColor: surface.100
borderRadius: '5'
gridRowHeight: '22'
gridRows: '0'
height: 220px
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
styles: |-
element.styles {
border-width: 1px;
border-color: text.muted;
}
top: '102'
width: fill
65bbb933-2f04-4796-afe7-506194721d32:
type: FUNCTION
name: getRandomExampleData
properties:
action:
actionType: PERFORM_REQUEST
body: ''
bodyType: application/json
headers: []
method: GET
path: '?size=30'
targetNode:
ref: c038db71-e096-4432-bf8d-3e8bad052f6a
isEnabled: '{{true}}'
loading: '{{false}}'
runOnPageLoad: true
73db1033-fbf3-4277-8ec1-b75de844859d:
type: TEXT
name: textHeader
properties:
fontSize: 3xl
fontWeight: bold
height: 60px
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: Make Apps Dynamic with {{ "{{ Code \}}" }}
width: fill
76169d73-f4ef-4df8-99a4-0d46b3c50ab5:
type: TEXT
name: textStepLetsGetStartedBody
properties:
height: '11'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: ''
top: '2'
value: >-
In order to get started, switch to `Test` mode by clicking the button in
the floating action bar at the bottom of the screen.
`Test` mode lets you test and use UI components. Once you have swapped
modes, scroll down to the next section to see some UI components in
action.
verticalAlign: top
width: '9'
7818a6f7-3096-4a64-baf7-9fb2c3166de0:
type: RESOURCE/TYPESCRIPT_CLIENT
name: typescriptClient1
781e9c93-ea0f-4707-a7d6-d9a76fc41f84:
type: TEXT
name: textStepMakeThingsDynamicTitle
properties:
fontSize: xl
fontWeight: bold
height: '1'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
showExternalIndicator: '{{false}}'
value: '4) Next: Make Apps Dynamic with {{ "{{ Code \}}" }}'
verticalAlign: bottom
width: '12'
7e0ee4db-ca2e-4b47-8b08-e060969c486e:
type: TEXT
name: textStepAdvancedJSBody
properties:
height: '3'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: |-
:root {
/* https://developer.mozilla.org/en-US/docs/Web/CSS/:root */
}
a {
color: #6968C3;
font-weight: 400;
text-decoration: underline;
}
h1, h2, h3 {
font-weight: 400;
margin-bottom: 5px;
}
h4, h5, h6 {
font-weight: 500;
margin-bottom: 5px;
}
p {
line-height: 1.8;
}
ol {
margin-top: 10px;
}
ul {
margin-top: 10px;
}
li {
line-height: 1.6;
}
li em {
line-height: 1.6;
}
code {
padding: 0px 4px;
border-radius: 4px;
}
top: '2'
value: >-
So far, we’ve only returned a basic string value inside of a data
binding. However, it’s possible to do much more. In the example below,
we’re mapping over and returning a JSON object to populate the chart.
verticalAlign: top
width: '12'
83ec7aea-9262-46aa-a18f-4badca4579e2:
type: TEXT
name: textStepNextUpBody
properties:
height: '3'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: |-
:root {
/* https://developer.mozilla.org/en-US/docs/Web/CSS/:root */
}
a {
color: #6968C3;
font-weight: 400;
text-decoration: underline;
}
h1, h2, h3 {
font-weight: 400;
margin-bottom: 5px;
}
h4, h5, h6 {
font-weight: 500;
margin-bottom: 5px;
}
p {
line-height: 1.8;
}
ol {
margin-top: 10px;
}
ul {
margin-top: 10px;
}
li {
line-height: 1.6;
}
li em {
line-height: 1.6;
}
code {
padding: 0px 4px;
border-radius: 4px;
}
top: '2'
value: >-
Data binding and functions go together hand-in-hand as a way to pass
data back and forth between the UI of your application and back-end
resources. The templates on the next page provide different examples of
how this works in practice.
verticalAlign: top
width: '12'
8463cf78-496e-4757-bfcc-af3ba1a79ae8:
type: TEXT
name: textStepInteractingWithComponentsBody
properties:
height: '5'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: ''
top: '2'
value: >-
Below we have a small user account management example that includes a
data table, text input, and dropdown. With `Test` mode selected choose
an account type, search for an account owner, or sort the data table.
verticalAlign: top
width: '12'
86be3c07-c257-4a81-ba5d-727e7f0b5fef:
type: TEXT
name: textStepBasicDataBindingBody2
properties:
height: '4'
isEnabled: '{{true}}'
isVisible: '{{true}}'
maxHeight: none
maxWidth: none
minHeight: none
minWidth: none
renderMode: markdown
showExternalIndicator: '{{false}}'
styles: ''
top: '12'
value: >-