forked from predixdesignsystem/px-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpx-modal-api.json
1698 lines (1698 loc) · 55.6 KB
/
px-modal-api.json
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
{
"schema_version": "1.0.0",
"elements": [
{
"description": "Creates a wrapper around an HTML element that users can tap to show\na `<px-modal>`. Pass any content into the `<px-modal-trigger>` tag and data-bind\nthe element's `trigger` property to the modal's `openTrigger` property.\n\n### Usage\n\n <px-modal open-trigger=\"[[openTrigger]]\"></px-modal>\n <px-modal-trigger trigger=\"{{openTrigger}}\">\n <button>Open Modal</button>\n </px-modal-trigger>",
"summary": "",
"path": "px-modal-trigger.html",
"properties": [
{
"name": "trigger",
"type": "HTMLElement",
"description": "Reference to the HTML element wrapping around the user-tappable\ncontent. Makes it easy to data-bind a tappable element to the\npx-modal `openTrigger` property.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 55,
"column": 7
}
},
"metadata": {
"polymer": {
"notify": true
}
}
}
],
"methods": [
{
"name": "ready",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 60,
"column": 5
}
},
"metadata": {},
"params": []
}
],
"staticMethods": [],
"demos": [
{
"url": "index.html",
"description": ""
}
],
"metadata": {},
"sourceRange": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 61,
"column": 3
}
},
"privacy": "public",
"superclass": "HTMLElement",
"attributes": [
{
"name": "trigger",
"description": "Reference to the HTML element wrapping around the user-tappable\ncontent. Makes it easy to data-bind a tappable element to the\npx-modal `openTrigger` property.",
"sourceRange": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 55,
"column": 7
}
},
"metadata": {},
"type": "HTMLElement"
}
],
"events": [
{
"type": "CustomEvent",
"name": "trigger-changed",
"description": "Fired when the `trigger` property changes.",
"metadata": {}
}
],
"styling": {
"cssVariables": [],
"selectors": []
},
"slots": [
{
"description": "",
"name": "",
"range": {
"file": "px-modal-trigger.html",
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 17
}
}
}
],
"tagname": "px-modal-trigger"
},
{
"description": "Modals open over the page content and prompt the user to take some actions before\nthey continue using the app. Modals can be used to confirm the user wants to\ncomplete a destructive action, to prompt a specific input needed before moving\nforward, or to inform the user of some important information.\n\n### Basic usage\n\nTo create a basic modal, pass some text in for the user to read and provide strings\nfor the accept and reject trigger buttons. Open the modal by setting the `opened`\nproperty to `true`:\n\n <px-modal\n header-text=\"Confirm delete\"\n body-text=\"Do you want to delete this record? The record will be deleted permanently.\"\n accept-text=\"Permanently Delete Record\"\n reject-text=\"Cancel\"\n opened>\n </px-modal>\n\nUse the `<px-modal-trigger>` element to create a target the user can tap to open\nthe modal. Data-bind the wrapper's `trigger` property to the modal's `openTrigger`\nproperty to connect the two:\n\n <px-modal-trigger trigger=\"{{trigger}}\">\n <button>Open the modal</button>\n </px-modal-trigger>\n <px-modal open-trigger=\"[[trigger]]\" header-text=\"...\" body-text=\"...\" accept-text=\"...\" reject-text=\"...\">\n </px-modal>\n\n### Custom content\n\nThe app can pass in custom content to display for the modal header, body,\nand accept and reject trigger sections. Use the `header`, `body`, `actions`,\n`accept-trigger`, and `reject-trigger` slots to define custom content:\n\n <px-modal opened>\n <div slot=\"header\">Confirm delete</div>\n <div slot=\"body\">\n <p>Do you want to delete this record? The record will be deleted permanently.</p>\n </div>\n <div style=\"width:100%\" slot=\"actions\">\n <button>Custom action</button>\n </div>\n <button slot=\"reject-trigger\">Cancel</button>\n <button slot=\"accept-trigger\">Permanently Delete Record</button>\n </px-modal>\n\nWhen the user taps on elements passed into the trigger slots the modal will\nautomatically hide itself and fire relevant events.\n\n### Application modal\n\nAs opposed to the modal dialog use case above, your application may need to provide a larger, more interactive\nmodal - the user is still focused on completing a task outside of the regular application flow, but may need more\nspace. An example would be drilling down from a table into a detail view for a specific row in that table,\ntaking some action to disposition the row, and returning the user to the main view. In this case, use the `fill-container`\nand `fit-into` properties to specify what portion of the screen should be taken up by the modal\n(usually the main content frame of your application):\n\n <px-modal id=\"myModal\" header-text=\"Detail view\" fill-container>\n <div slot=\"body\">\n // Content here\n </div>\n </px-modal>\n\n <script>\n var modal = document.getElementById('myModal');\n var frame = document.getElementById('myApplicationFrame');\n modal.set('fitInto', frame);\n </script>\n\n\n### Responding to accept and reject triggers\n\nThe user can accept or reject a modal prompt. Apps may want to respond differently\ndepending on what the user selects. For example, if the user accepts a delete\nconfirmation modal the app should delete the record, and if the user rejects the\nmodal the apps should cancel the deletion. Listen for the `px-modal-rejected`\nand `px-modal-accepted` events to respond to user actions:\n\n <px-modal\n id=\"confirmModal\"\n header-text=\"Confirm delete\"\n body-text=\"Do you want to delete this record? The record will be deleted permanently.\"\n accept-text=\"Permanently Delete Record\"\n reject-text=\"Cancel\"\n opened>\n </px-modal>\n <script>\n var modal = document.getElementById('confirmModal');\n modal.addEventListener('px-modal-rejected', function(e) {\n // ... handle reject action here ...\n });\n modal.addEventListener('px-modal-accepted', function(e) {\n // ... handle accept action here ...\n });\n </script>\n\nBy default, the modal is dismissed when the user presses the escape key. Listen\nfor the `px-modal-dismissed` event to respond to this action. Set the\n`disableCloseOnEscape` property to `true` to keep the modal open when the\nuser presses the escape key.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description\n:------------|:-------------\n`--px-modal-background-color` | Background color of the modal dialog\n`--px-modal-background-color--container` | Background color of the modal dialog when fill-container is true\n`--px-modal-overlay-color` | Color of the overlay that covers the screen behind the modal dialog\n`--px-modal-text-color` | Text color for content set with properties (slotted content will not use this color)\n`--px-modal-text-color--container` | Text color for content set with properties when fill-container is true\n`--px-modal-z-index` | z-index value for the modal",
"summary": "",
"path": "px-modal.html",
"properties": [
{
"name": "sizingTarget",
"type": "!Element",
"description": "The element that will receive a `max-height`/`width`. By default it is\nthe same as `this`, but it can be set to a child element. This is useful,\nfor example, for implementing a scrolling region inside the element.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 77,
"column": 7
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "fitInto",
"type": "Object",
"description": "The element to fit `this` into.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 82,
"column": 6
},
"end": {
"line": 82,
"column": 44
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "noOverlap",
"type": "boolean",
"description": "Will position the element around the positionTarget without overlapping\nit.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 88,
"column": 6
},
"end": {
"line": 88,
"column": 32
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "positionTarget",
"type": "!Element",
"description": "The element that should be used to position the element. If not set, it\nwill default to the parent node.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 95,
"column": 6
},
"end": {
"line": 95,
"column": 37
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "horizontalAlign",
"type": "string",
"description": "The orientation against which to align the element horizontally\nrelative to the `positionTarget`. Possible values are \"left\", \"right\",\n\"center\", \"auto\".",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 102,
"column": 6
},
"end": {
"line": 102,
"column": 37
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "verticalAlign",
"type": "string",
"description": "The orientation against which to align the element vertically\nrelative to the `positionTarget`. Possible values are \"top\", \"bottom\",\n\"middle\", \"auto\".",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 35
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "dynamicAlign",
"type": "boolean",
"description": "If true, it will use `horizontalAlign` and `verticalAlign` values as\npreferred alignment and if there's not enough space, it will pick the\nvalues which minimize the cropping.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 116,
"column": 6
},
"end": {
"line": 116,
"column": 35
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "horizontalOffset",
"type": "number",
"description": "A pixel value that will be added to the position calculated for the\ngiven `horizontalAlign`, in the direction of alignment. You can think\nof it as increasing or decreasing the distance to the side of the\nscreen given by `horizontalAlign`.\n\nIf `horizontalAlign` is \"left\" or \"center\", this offset will increase or\ndecrease the distance to the left side of the screen: a negative offset\nwill move the dropdown to the left; a positive one, to the right.\n\nConversely if `horizontalAlign` is \"right\", this offset will increase\nor decrease the distance to the right side of the screen: a negative\noffset will move the dropdown to the right; a positive one, to the left.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 132,
"column": 6
},
"end": {
"line": 132,
"column": 62
}
},
"metadata": {
"polymer": {
"notify": true
}
},
"defaultValue": "0",
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "verticalOffset",
"type": "number",
"description": "A pixel value that will be added to the position calculated for the\ngiven `verticalAlign`, in the direction of alignment. You can think\nof it as increasing or decreasing the distance to the side of the\nscreen given by `verticalAlign`.\n\nIf `verticalAlign` is \"top\" or \"middle\", this offset will increase or\ndecrease the distance to the top side of the screen: a negative offset\nwill move the dropdown upwards; a positive one, downwards.\n\nConversely if `verticalAlign` is \"bottom\", this offset will increase\nor decrease the distance to the bottom side of the screen: a negative\noffset will move the dropdown downwards; a positive one, upwards.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 148,
"column": 6
},
"end": {
"line": 148,
"column": 60
}
},
"metadata": {
"polymer": {
"notify": true
}
},
"defaultValue": "0",
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "autoFitOnAttach",
"type": "boolean",
"description": "Used by iron-fit-behavior to attach the modal to the Window by default.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 283,
"column": 9
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true"
},
{
"name": "_fitInfo",
"type": "?Object",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 156,
"column": 6
},
"end": {
"line": 156,
"column": 30
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "headerText",
"type": "string",
"description": "String displayed in the modal header. Override with custom HTML using\nthe `header` slot.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 198,
"column": 8
},
"end": {
"line": 198,
"column": 26
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "bodyText",
"type": "string",
"description": "String displayed in the modal body. Override with custom HTML using\nthe `body` slot.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 204,
"column": 8
},
"end": {
"line": 204,
"column": 24
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "acceptText",
"type": "string",
"description": "String used for the accept button. Override with a custom button using\nthe `accept-trigger` slot.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 210,
"column": 8
},
"end": {
"line": 210,
"column": 26
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "rejectText",
"type": "string",
"description": "String used for the reject button. Override with a custom button using\nthe `reject-trigger` slot.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 216,
"column": 8
},
"end": {
"line": 216,
"column": 26
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "opened",
"type": "boolean",
"description": "Set this flag to show the modal, remove it to hide the modal.\nAutomatically updated when the user taps a trigger that opens or\ncloses the modal.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 223,
"column": 8
},
"end": {
"line": 229,
"column": 9
}
},
"metadata": {
"polymer": {
"notify": true,
"observer": "\"_handleOpenedChanged\""
}
},
"defaultValue": "false"
},
{
"name": "openTrigger",
"type": "HTMLElement",
"description": "Set to an HTMLElement reference using JavaScript. When the element\nis clicked or tapped, the modal will be opened. To create your own\nmechanism for opening the modal use the `opened` property and\ndo not set an `openTrigger`.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 237,
"column": 8
},
"end": {
"line": 240,
"column": 9
}
},
"metadata": {
"polymer": {
"observer": "\"_handleOpenTriggerUpdated\""
}
}
},
{
"name": "disableCloseOnEscape",
"type": "boolean",
"description": "By default the user can press escape to dismiss the modal. Set this\nproperty to `true` to disable that functionality if you want to\nforce the user to interact with the accept/reject buttons to\ndismiss the modal.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 248,
"column": 8
},
"end": {
"line": 251,
"column": 9
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "false"
},
{
"name": "disableAutoFocus",
"type": "boolean",
"description": "By default the modal automatically focuses the first focusable\nelement in its slots or shadow root. To disable this behavior set\nthis property to `true`. Must be set before the modal is opened to\nwork correctly.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 259,
"column": 8
},
"end": {
"line": 262,
"column": 9
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "false"
},
{
"name": "fillContainer",
"type": "boolean",
"description": "By default, the modal will fit itself into the Window for use with\nmodal dialogs. Set this property to create a modal that fills another\ncontainer instead, for instance the main content area of your app.\nYou can specify which container using the `fitInto` property.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 270,
"column": 8
},
"end": {
"line": 275,
"column": 9
}
},
"metadata": {
"polymer": {
"observer": "\"_handleFillContainerChanged\""
}
},
"defaultValue": "false"
},
{
"name": "_focusableElements",
"type": "Array",
"description": "Focusable elements inside the modal, determined with\n`Polymer.IronFocusablesHelper.getTabbableNodes()`.",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 289,
"column": 8
},
"end": {
"line": 292,
"column": 9
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "[]"
}
],
"methods": [
{
"name": "_fitWidth",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 159,
"column": 4
},
"end": {
"line": 167,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_fitHeight",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 169,
"column": 4
},
"end": {
"line": 177,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_fitLeft",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 179,
"column": 4
},
"end": {
"line": 187,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_fitTop",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 189,
"column": 4
},
"end": {
"line": 197,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_defaultPositionTarget",
"description": "The element that should be used to position the element,\nif no position target is configured.",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 203,
"column": 4
},
"end": {
"line": 211,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_localeHorizontalAlign",
"description": "The horizontal align value, accounting for the RTL/LTR text direction.",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 216,
"column": 4
},
"end": {
"line": 227,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "__shouldPosition",
"description": "True if the element should be positioned instead of centered.",
"privacy": "private",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 233,
"column": 4
},
"end": {
"line": 236,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "attached",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 238,
"column": 4
},
"end": {
"line": 258,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "detached",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 260,
"column": 4
},
"end": {
"line": 265,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "fit",
"description": "Positions and fits the element into the `fitInto` element.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 270,
"column": 4
},
"end": {
"line": 274,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_discoverInfo",
"description": "Memoize information needed to position and size the target element.",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 280,
"column": 4
},
"end": {
"line": 319,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "resetFit",
"description": "Resets the target element's position and size constraints, and clear\nthe memoized data.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 325,
"column": 4
},
"end": {
"line": 335,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "refit",
"description": "Equivalent to calling `resetFit()` and `fit()`. Useful to call this after\nthe element or the `fitInto` element has been resized, or if any of the\npositioning properties (e.g. `horizontalAlign, verticalAlign`) is updated.\nIt preserves the scroll position of the sizingTarget.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 343,
"column": 4
},
"end": {
"line": 350,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "position",
"description": "Positions the element according to `horizontalAlign, verticalAlign`.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 355,
"column": 4
},
"end": {
"line": 416,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "constrain",
"description": "Constrains the size of the element to `fitInto` by setting `max-height`\nand/or `max-width`.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 422,
"column": 4
},
"end": {
"line": 452,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "_sizeDimension",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 458,
"column": 4
},
"end": {
"line": 460,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "rect"
},
{
"name": "positionedBy"
},
{
"name": "start"
},
{
"name": "end"
},
{
"name": "extent"
}
],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "__sizeDimension",
"description": "",
"privacy": "private",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 465,
"column": 4
},
"end": {
"line": 476,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "rect"
},
{
"name": "positionedBy"
},
{
"name": "start"
},
{
"name": "end"
},
{
"name": "extent"
}
],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "center",
"description": "Centers horizontally and vertically if not already positioned. This also\nsets `position:fixed`.",
"privacy": "public",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 482,
"column": 4
},
"end": {
"line": 515,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "__getNormalizedRect",
"description": "",
"privacy": "private",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 517,
"column": 4
},
"end": {
"line": 529,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "target"
}
],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "__getOffscreenArea",
"description": "",
"privacy": "private",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 531,
"column": 4
},
"end": {
"line": 538,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "position"
},
{
"name": "size"
},
{
"name": "fitRect"
}
],
"inheritedFrom": "Polymer.IronFitBehavior"
},
{
"name": "__getPosition",
"description": "",
"privacy": "private",
"sourceRange": {
"file": "bower_components/iron-fit-behavior/iron-fit-behavior.html",
"start": {
"line": 541,
"column": 4
},
"end": {