@brightspace-ui/core 3.227.3 → 3.227.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/button/button.js +8 -8
- package/components/colors/colors.js +8 -0
- package/components/count-badge/count-badge-icon.js +1 -1
- package/components/count-badge/count-badge-mixin.js +4 -4
- package/components/demo/test/demo-page-settings.test.js +25 -0
- package/components/demo/test/demo-page.test.js +17 -0
- package/package.json +1 -1
- package/components/alert/demo/alert-toast.html +0 -106
- package/components/alert/demo/alert.html +0 -82
- package/components/backdrop/demo/backdrop-loading.html +0 -166
- package/components/backdrop/demo/backdrop.html +0 -57
- package/components/breadcrumbs/demo/breadcrumbs.html +0 -53
- package/components/button/demo/button-add.html +0 -55
- package/components/button/demo/button-copy.html +0 -122
- package/components/button/demo/button-icon.html +0 -174
- package/components/button/demo/button-move.html +0 -38
- package/components/button/demo/button-split.html +0 -76
- package/components/button/demo/button-subtle.html +0 -132
- package/components/button/demo/button-toggle.html +0 -80
- package/components/button/demo/button.html +0 -67
- package/components/button/demo/floating-buttons-in-frame.html +0 -44
- package/components/button/demo/floating-buttons-in-tabs.html +0 -244
- package/components/button/demo/floating-buttons-page.html +0 -100
- package/components/button/demo/floating-buttons.html +0 -101
- package/components/calendar/demo/calendar.html +0 -76
- package/components/card/demo/card.html +0 -304
- package/components/collapsible-panel/demo/collapsible-panel.html +0 -218
- package/components/colors/demo/color-swatch.js +0 -240
- package/components/colors/demo/colors.html +0 -139
- package/components/count-badge/demo/count-badge-icon.html +0 -48
- package/components/count-badge/demo/count-badge.html +0 -73
- package/components/demo/demo/demo-snippet.html +0 -71
- package/components/description-list/demo/description-list-test.js +0 -142
- package/components/description-list/demo/description-list.html +0 -48
- package/components/dialog/demo/dialog-async-content-until.js +0 -89
- package/components/dialog/demo/dialog-async-content.js +0 -72
- package/components/dialog/demo/dialog-confirm.html +0 -102
- package/components/dialog/demo/dialog-container.js +0 -40
- package/components/dialog/demo/dialog-fullscreen.html +0 -273
- package/components/dialog/demo/dialog-nested.html +0 -94
- package/components/dialog/demo/dialog.html +0 -398
- package/components/dropdown/demo/dropdown-button.html +0 -102
- package/components/dropdown/demo/dropdown-context-menu.html +0 -129
- package/components/dropdown/demo/dropdown-flicker-inner.html +0 -70
- package/components/dropdown/demo/dropdown-flicker.html +0 -142
- package/components/dropdown/demo/dropdown-menu-demo-view.js +0 -37
- package/components/dropdown/demo/dropdown-menu.html +0 -227
- package/components/dropdown/demo/dropdown-more.html +0 -160
- package/components/dropdown/demo/dropdown-positioning.html +0 -127
- package/components/dropdown/demo/dropdown-tabs.html +0 -87
- package/components/dropdown/demo/dropdown.html +0 -217
- package/components/empty-state/demo/empty-state.html +0 -94
- package/components/expand-collapse/demo/expand-collapse-content.html +0 -58
- package/components/filter/demo/filter-load-more-demo.js +0 -182
- package/components/filter/demo/filter-overflow-group.html +0 -246
- package/components/filter/demo/filter-search-demo.js +0 -135
- package/components/filter/demo/filter-tags.html +0 -115
- package/components/filter/demo/filter.html +0 -230
- package/components/focus-trap/demo/focus-trap.html +0 -75
- package/components/form/demo/form-demo.js +0 -105
- package/components/form/demo/form-dialog-demo.js +0 -94
- package/components/form/demo/form-panel-demo.js +0 -89
- package/components/form/demo/form.html +0 -37
- package/components/hierarchical-view/demo/hierarchical-view.html +0 -221
- package/components/html-block/demo/html-block-code.html +0 -55
- package/components/html-block/demo/html-block.html +0 -696
- package/components/icons/demo/icon-color-override.js +0 -23
- package/components/icons/demo/icon-custom.html +0 -112
- package/components/icons/demo/icon-size-override.js +0 -24
- package/components/icons/demo/icon.html +0 -52
- package/components/inputs/demo/input-checkbox.html +0 -118
- package/components/inputs/demo/input-color-palette.js +0 -67
- package/components/inputs/demo/input-color.html +0 -110
- package/components/inputs/demo/input-date-range.html +0 -114
- package/components/inputs/demo/input-date-time-range.html +0 -128
- package/components/inputs/demo/input-date-time.html +0 -100
- package/components/inputs/demo/input-date.html +0 -81
- package/components/inputs/demo/input-group.html +0 -56
- package/components/inputs/demo/input-number.html +0 -136
- package/components/inputs/demo/input-percent.html +0 -99
- package/components/inputs/demo/input-radio-label-test.js +0 -45
- package/components/inputs/demo/input-radio-solo-test.js +0 -47
- package/components/inputs/demo/input-radio.html +0 -119
- package/components/inputs/demo/input-search.html +0 -75
- package/components/inputs/demo/input-select-test.js +0 -60
- package/components/inputs/demo/input-select.html +0 -45
- package/components/inputs/demo/input-text.html +0 -163
- package/components/inputs/demo/input-textarea.html +0 -124
- package/components/inputs/demo/input-time-range.html +0 -121
- package/components/inputs/demo/input-time.html +0 -95
- package/components/link/demo/link.html +0 -111
- package/components/list/demo/demo-list-nav.js +0 -170
- package/components/list/demo/demo-list-nested-iterations-helper.js +0 -168
- package/components/list/demo/demo-list-nested-lazy-load.js +0 -133
- package/components/list/demo/demo-list-nested.js +0 -291
- package/components/list/demo/demo-list.js +0 -241
- package/components/list/demo/list-color.html +0 -423
- package/components/list/demo/list-demo-scenarios.js +0 -380
- package/components/list/demo/list-drag-and-drop-position.js +0 -102
- package/components/list/demo/list-drag-and-drop.html +0 -82
- package/components/list/demo/list-expand-collapse.html +0 -136
- package/components/list/demo/list-item-actions.html +0 -371
- package/components/list/demo/list-item-custom.js +0 -204
- package/components/list/demo/list-item-layouts.html +0 -331
- package/components/list/demo/list-item-scroll.html +0 -122
- package/components/list/demo/list-layout.html +0 -575
- package/components/list/demo/list-nav.html +0 -110
- package/components/list/demo/list-nested.html +0 -270
- package/components/list/demo/list-selection.html +0 -301
- package/components/list/demo/list.html +0 -319
- package/components/loading-spinner/demo/loading-spinner-override.js +0 -34
- package/components/loading-spinner/demo/loading-spinner.html +0 -63
- package/components/menu/demo/checkbox-menu.html +0 -52
- package/components/menu/demo/custom-menu-item.js +0 -37
- package/components/menu/demo/custom-view.js +0 -63
- package/components/menu/demo/menu.html +0 -211
- package/components/menu/demo/radio-menu.html +0 -52
- package/components/meter/demo/meter.html +0 -115
- package/components/more-less/demo/more-less-test.js +0 -67
- package/components/more-less/demo/more-less.html +0 -71
- package/components/object-property-list/demo/object-property-list.html +0 -99
- package/components/offscreen/demo/offscreen-demo.js +0 -16
- package/components/offscreen/demo/offscreen.html +0 -44
- package/components/overflow-group/demo/demo-overflow-group.js +0 -29
- package/components/overflow-group/demo/overflow-group.html +0 -110
- package/components/paging/demo/pager-load-more.html +0 -120
- package/components/popover/demo/popover.html +0 -309
- package/components/progress/demo/progress.html +0 -104
- package/components/scroll-wrapper/demo/scroll-wrapper-test.js +0 -108
- package/components/scroll-wrapper/demo/scroll-wrapper.html +0 -52
- package/components/selection/demo/demo-selection.js +0 -35
- package/components/selection/demo/selection.html +0 -198
- package/components/skeleton/demo/skeleton-group-nested-test.js +0 -71
- package/components/skeleton/demo/skeleton-group-test-wrapper.js +0 -18
- package/components/skeleton/demo/skeleton-group-test.js +0 -91
- package/components/skeleton/demo/skeleton-mixin.html +0 -78
- package/components/skeleton/demo/skeleton-test-box.js +0 -34
- package/components/skeleton/demo/skeleton-test-container.js +0 -45
- package/components/skeleton/demo/skeleton-test-heading.js +0 -44
- package/components/skeleton/demo/skeleton-test-link.js +0 -47
- package/components/skeleton/demo/skeleton-test-paragraph.js +0 -54
- package/components/skeleton/demo/skeleton-test-stack.js +0 -38
- package/components/skeleton/demo/skeleton-test-width.js +0 -20
- package/components/sorting/demo/sort.html +0 -37
- package/components/status-indicator/demo/status-indicator.html +0 -99
- package/components/switch/demo/switch.html +0 -95
- package/components/table/demo/table-test.js +0 -271
- package/components/table/demo/table.html +0 -107
- package/components/tabs/demo/tab-custom.js +0 -39
- package/components/tabs/demo/tabs-array.js +0 -43
- package/components/tabs/demo/tabs.html +0 -558
- package/components/tag-list/demo/tag-list.html +0 -117
- package/components/tooltip/demo/tooltip.html +0 -275
- package/components/typography/demo/typography.html +0 -93
- package/components/view-switcher/demo/demo-table-view.js +0 -41
- package/components/view-switcher/demo/view-switcher.html +0 -71
- package/directives/animate/demo/animate-test.js +0 -98
- package/directives/animate/demo/index.html +0 -23
- package/helpers/demo/announce-test.js +0 -37
- package/helpers/demo/announce.html +0 -19
- package/helpers/demo/dismissible-test.js +0 -66
- package/helpers/demo/dismissible.html +0 -38
- package/helpers/demo/gestures.html +0 -58
- package/helpers/demo/prism.html +0 -694
- package/helpers/demo/template-tags.html +0 -118
- package/mixins/arrow-keys/demo/arrow-keys-mixin.html +0 -29
- package/mixins/arrow-keys/demo/arrow-keys-test.js +0 -38
- package/mixins/async-container/demo/async-container.html +0 -109
- package/mixins/async-container/demo/async-container.js +0 -27
- package/mixins/async-container/demo/async-item.js +0 -80
- package/mixins/labelled/demo/labelled-mixin.html +0 -90
- package/mixins/localize/demo/localize-mixin-greeting.js +0 -39
- package/mixins/localize/demo/localize-mixin-mission.js +0 -25
- package/mixins/localize/demo/localize-mixin.html +0 -28
- package/templates/primary-secondary/demo/form.html +0 -55
- package/templates/primary-secondary/demo/index.html +0 -27
- package/templates/primary-secondary/demo/integration.html +0 -457
- package/templates/primary-secondary/demo/overflow-hidden.html +0 -22
- package/templates/primary-secondary/demo/width-type-normal.html +0 -26
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<link rel="stylesheet" href="../../demo/styles.css" type="text/css">
|
|
7
|
-
<script type="module">
|
|
8
|
-
import '../../demo/demo-page.js';
|
|
9
|
-
import '../tag-list.js';
|
|
10
|
-
import '../tag-list-item.js';
|
|
11
|
-
import '../test/tag-list-item-mixin-consumer.js';
|
|
12
|
-
</script>
|
|
13
|
-
<style>
|
|
14
|
-
.actions {
|
|
15
|
-
margin-bottom: 1rem;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body unresolved>
|
|
20
|
-
<d2l-demo-page page-title="d2l-tag-list">
|
|
21
|
-
|
|
22
|
-
<h2>Basic Tag List</h2>
|
|
23
|
-
|
|
24
|
-
<div class="actions">
|
|
25
|
-
<button id="add">add tag (first)</button>
|
|
26
|
-
<button id="remove">remove tag (first)</button>
|
|
27
|
-
</div>
|
|
28
|
-
<script>
|
|
29
|
-
let addIndex = 0;
|
|
30
|
-
document.querySelector('#add').addEventListener('click', () => {
|
|
31
|
-
const tag = document.createElement('d2l-tag-list-item');
|
|
32
|
-
tag.text = `Added Tag ${++addIndex}`;
|
|
33
|
-
document.querySelector('d2l-tag-list').insertBefore(tag, document.querySelector('d2l-tag-list').children[0]);
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
document.querySelector('#remove').addEventListener('click', () => {
|
|
37
|
-
const children = document.querySelector('d2l-tag-list').children;
|
|
38
|
-
if (children.length === 0) return;
|
|
39
|
-
document.querySelector('d2l-tag-list').removeChild(children[0]);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
</script>
|
|
43
|
-
<d2l-demo-snippet full-width>
|
|
44
|
-
<d2l-tag-list description="A bunch of example tags">
|
|
45
|
-
<d2l-tag-list-item text="Example 1 - much much much much much much much much longer"></d2l-tag-list-item>
|
|
46
|
-
<d2l-tag-list-item text="Example 2"></d2l-tag-list-item>
|
|
47
|
-
<d2l-tag-list-item text="Example 3"></d2l-tag-list-item>
|
|
48
|
-
<d2l-tag-list-item-mixin-consumer name="Custom Tag List Item"></d2l-tag-list-item-mixin-consumer>
|
|
49
|
-
<d2l-tag-list-item text="Example 5"></d2l-tag-list-item>
|
|
50
|
-
<d2l-tag-list-item text="Example 6" description="this is a description"></d2l-tag-list-item>
|
|
51
|
-
<d2l-tag-list-item text="Example 7"></d2l-tag-list-item>
|
|
52
|
-
<d2l-tag-list-item text="Example 8"></d2l-tag-list-item>
|
|
53
|
-
<d2l-tag-list-item text="Example 9"></d2l-tag-list-item>
|
|
54
|
-
</d2l-tag-list>
|
|
55
|
-
</d2l-demo-snippet>
|
|
56
|
-
|
|
57
|
-
<h2>Clearable Tag List</h2>
|
|
58
|
-
<d2l-demo-snippet full-width>
|
|
59
|
-
<d2l-tag-list description="A bunch of example tags" clearable>
|
|
60
|
-
<d2l-tag-list-item key="example-1" text="Example 1"></d2l-tag-list-item>
|
|
61
|
-
<d2l-tag-list-item key="example-2" text="Example 2 - much much much much much much much much longer"></d2l-tag-list-item>
|
|
62
|
-
<d2l-tag-list-item key="example-3" text="Example 3"></d2l-tag-list-item>
|
|
63
|
-
<d2l-tag-list-item-mixin-consumer key="custom" name="Custom Tag List Item"></d2l-tag-list-item-mixin-consumer>
|
|
64
|
-
<d2l-tag-list-item key="example-5" text="Example 5"></d2l-tag-list-item>
|
|
65
|
-
<d2l-tag-list-item key="example-6" text="Example 6" description="this is a description"></d2l-tag-list-item>
|
|
66
|
-
<d2l-tag-list-item key="example-7" text="Example 7"></d2l-tag-list-item>
|
|
67
|
-
<d2l-tag-list-item key="example-8" text="Example 8"></d2l-tag-list-item>
|
|
68
|
-
<d2l-tag-list-item key="example-9" text="Example 9"></d2l-tag-list-item>
|
|
69
|
-
</d2l-tag-list>
|
|
70
|
-
<script type="module">
|
|
71
|
-
import { getNextFocusable } from '../../../helpers/focus.js';
|
|
72
|
-
|
|
73
|
-
document.addEventListener('d2l-tag-list-item-clear', (e) => {
|
|
74
|
-
console.log(`d2l-tag-list-item-clear event dispatched. Key: ${e.target.key}; Value: ${e.target.text}`);
|
|
75
|
-
e.target.parentNode.removeChild(e.target);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
document.addEventListener('d2l-tag-list-clear', (e) => {
|
|
79
|
-
console.log('d2l-tag-list-clear event dispatched.', e.target);
|
|
80
|
-
const nextFocusable = getNextFocusable(e.target, true, true, true);
|
|
81
|
-
[...e.target.children].forEach(tag => {
|
|
82
|
-
e.target.removeChild(tag);
|
|
83
|
-
});
|
|
84
|
-
// consumer must move focus someplace logical
|
|
85
|
-
nextFocusable?.focus();
|
|
86
|
-
});
|
|
87
|
-
</script>
|
|
88
|
-
</d2l-demo-snippet>
|
|
89
|
-
|
|
90
|
-
<h2>Tag List with Interactive</h2>
|
|
91
|
-
<d2l-demo-snippet full-width>
|
|
92
|
-
<div grid>
|
|
93
|
-
<d2l-tag-list description="A bunch of example tags" clearable>
|
|
94
|
-
<d2l-tag-list-item text="Example Tag"></d2l-tag-list-item>
|
|
95
|
-
<d2l-tag-list-item text="Longer Example Tag - much much much much much longer"></d2l-tag-list-item>
|
|
96
|
-
<d2l-tag-list-item text="Another Example Tag"></d2l-tag-list-item>
|
|
97
|
-
<d2l-tag-list-item-mixin-consumer name="Custom Tag List Item"></d2l-tag-list-item-mixin-consumer>
|
|
98
|
-
<d2l-tag-list-item text="Example Tag 5"></d2l-tag-list-item>
|
|
99
|
-
<d2l-tag-list-item text="Example Tag 6"></d2l-tag-list-item>
|
|
100
|
-
<d2l-tag-list-item text="Example Tag 7"></d2l-tag-list-item>
|
|
101
|
-
</d2l-tag-list>
|
|
102
|
-
</div>
|
|
103
|
-
</d2l-demo-snippet>
|
|
104
|
-
|
|
105
|
-
<h2>Tag List - Custom Tooltip Description</h2>
|
|
106
|
-
<d2l-demo-snippet full-width>
|
|
107
|
-
<d2l-tag-list description="A bunch of example tags">
|
|
108
|
-
<d2l-tag-list-item text="Longer Example Tag - much much much much much longer" description="display text and description value when truncated"></d2l-tag-list-item>
|
|
109
|
-
<d2l-tag-list-item text="Example Tag 5" description="custom tooltip text - display description only when not truncated"></d2l-tag-list-item>
|
|
110
|
-
<d2l-tag-list-item text="Truncated list item without a custom tooltip description"></d2l-tag-list-item>
|
|
111
|
-
<d2l-tag-list-item text="No tooltip"></d2l-tag-list-item>
|
|
112
|
-
</d2l-tag-list>
|
|
113
|
-
</d2l-demo-snippet>
|
|
114
|
-
|
|
115
|
-
</d2l-demo-page>
|
|
116
|
-
</body>
|
|
117
|
-
</html>
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
6
|
-
<meta charset="UTF-8">
|
|
7
|
-
<link rel="stylesheet" href="../../demo/styles.css" type="text/css">
|
|
8
|
-
<script type="module">
|
|
9
|
-
import '../../demo/demo-page.js';
|
|
10
|
-
import '../../button/button.js';
|
|
11
|
-
import '../../colors/colors.js';
|
|
12
|
-
import '../../icons/icon-custom.js';
|
|
13
|
-
import '../../inputs/input-text.js';
|
|
14
|
-
import '../../link/link.js';
|
|
15
|
-
import '../tooltip.js';
|
|
16
|
-
import '../tooltip-help.js';
|
|
17
|
-
</script>
|
|
18
|
-
<style>
|
|
19
|
-
|
|
20
|
-
.boundary {
|
|
21
|
-
background-color: var(--d2l-color-citrine);
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
display: inline-block;
|
|
24
|
-
height: 175px;
|
|
25
|
-
padding-left: 150px;
|
|
26
|
-
padding-top: 60px;
|
|
27
|
-
position: relative;
|
|
28
|
-
width: 350px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.bounded {
|
|
32
|
-
border: 1px solid #cdd5dc;
|
|
33
|
-
border-radius: 6px;
|
|
34
|
-
height: 200px;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
padding: 20px;
|
|
37
|
-
width: 200px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.truncated {
|
|
41
|
-
border: 1px solid #cdd5dc;
|
|
42
|
-
border-radius: 6px;
|
|
43
|
-
height: 200px;
|
|
44
|
-
padding: 20px;
|
|
45
|
-
width: 200px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.truncated d2l-button {
|
|
49
|
-
margin-bottom: 20px;
|
|
50
|
-
max-width: 100%;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.truncated d2l-button span {
|
|
54
|
-
display: block;
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
text-overflow: ellipsis;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.truncated d2l-link {
|
|
61
|
-
display: flex;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.dark-background {
|
|
65
|
-
background-color: black;
|
|
66
|
-
padding: 20px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
</style>
|
|
70
|
-
</head>
|
|
71
|
-
|
|
72
|
-
<body unresolved>
|
|
73
|
-
|
|
74
|
-
<d2l-demo-page page-title="d2l-tooltip">
|
|
75
|
-
|
|
76
|
-
<h2>Tooltip (info)</h2>
|
|
77
|
-
<d2l-demo-snippet>
|
|
78
|
-
<template>
|
|
79
|
-
<d2l-button id="tooltip-preview">Preview</d2l-button>
|
|
80
|
-
<d2l-tooltip for="tooltip-preview">
|
|
81
|
-
Tooltip for the Preview button.
|
|
82
|
-
</d2l-tooltip>
|
|
83
|
-
<d2l-button id="tooltip-settings">Settings</d2l-button>
|
|
84
|
-
<d2l-tooltip for="tooltip-settings">
|
|
85
|
-
Tooltip for the Settings button.
|
|
86
|
-
</d2l-tooltip>
|
|
87
|
-
</template>
|
|
88
|
-
</d2l-demo-snippet>
|
|
89
|
-
|
|
90
|
-
<h2>Tooltip (error)</h2>
|
|
91
|
-
<d2l-demo-snippet>
|
|
92
|
-
<template>
|
|
93
|
-
<d2l-input-text placeholder="Hover for Error" id="tooltip-error" aria-invalid="true" label="label"></d2l-input-text>
|
|
94
|
-
<d2l-tooltip for="tooltip-error" state="error" align="start" offset="10">
|
|
95
|
-
Your error message will display here
|
|
96
|
-
</d2l-tooltip>
|
|
97
|
-
</template>
|
|
98
|
-
</d2l-demo-snippet>
|
|
99
|
-
|
|
100
|
-
<h2>Tooltip (position)</h2>
|
|
101
|
-
<d2l-demo-snippet>
|
|
102
|
-
<template>
|
|
103
|
-
<div>
|
|
104
|
-
<select id="position">
|
|
105
|
-
<option value="bottom" selected>bottom</option>
|
|
106
|
-
<option value="left">left</option>
|
|
107
|
-
<option value="right">right</option>
|
|
108
|
-
<option value="top">top</option>
|
|
109
|
-
</select>
|
|
110
|
-
<select id="align">
|
|
111
|
-
<option value="center" selected>center</option>
|
|
112
|
-
<option value="start">start</option>
|
|
113
|
-
<option value="end">end</option>
|
|
114
|
-
</select>
|
|
115
|
-
</div>
|
|
116
|
-
<div style="text-align: center;">
|
|
117
|
-
<d2l-button id="tooltip-position">Tooltip Position</d2l-button>
|
|
118
|
-
<d2l-tooltip for="tooltip-position">
|
|
119
|
-
This tooltip will be positioned according to the above selections for location and alignment.
|
|
120
|
-
</d2l-tooltip>
|
|
121
|
-
</div>
|
|
122
|
-
<script data-demo-hide>
|
|
123
|
-
const demo = document.currentScript.parentNode;
|
|
124
|
-
demo.querySelector('#position').addEventListener('change', e => {
|
|
125
|
-
demo.querySelector('d2l-tooltip').setAttribute('position', e.target.value);
|
|
126
|
-
});
|
|
127
|
-
demo.querySelector('#align').addEventListener('change', e => {
|
|
128
|
-
demo.querySelector('d2l-tooltip').align = (e.target.value !== 'center' ? e.target.value : undefined);
|
|
129
|
-
});
|
|
130
|
-
</script>
|
|
131
|
-
</template>
|
|
132
|
-
</d2l-demo-snippet>
|
|
133
|
-
|
|
134
|
-
<h2>Tooltip (boundary)</h2>
|
|
135
|
-
<d2l-demo-snippet>
|
|
136
|
-
<template>
|
|
137
|
-
<div class="boundary">
|
|
138
|
-
<d2l-button id="tooltip-boundary">Tooltip boundary</d2l-button>
|
|
139
|
-
<d2l-tooltip for="tooltip-boundary"
|
|
140
|
-
boundary="{"top":0, "bottom":0, "left":0, "right":0}">
|
|
141
|
-
This tooltip will not expand beyond its boundaries unless it is impossible to fit it inside
|
|
142
|
-
</d2l-tooltip>
|
|
143
|
-
</div>
|
|
144
|
-
</template>
|
|
145
|
-
</d2l-demo-snippet>
|
|
146
|
-
|
|
147
|
-
<h2>Tooltip (delay)</h2>
|
|
148
|
-
<d2l-demo-snippet>
|
|
149
|
-
<template>
|
|
150
|
-
<d2l-button id="tooltip-delay">Hover and Wait</d2l-button>
|
|
151
|
-
<d2l-tooltip for="tooltip-delay" delay="1000">
|
|
152
|
-
Your delayed message will display here
|
|
153
|
-
</d2l-tooltip>
|
|
154
|
-
</template>
|
|
155
|
-
</d2l-demo-snippet>
|
|
156
|
-
|
|
157
|
-
<h2>Tooltip (force-show)</h2>
|
|
158
|
-
<d2l-demo-snippet>
|
|
159
|
-
<template>
|
|
160
|
-
<d2l-button id="tooltip-force-show">Always visible</d2l-button>
|
|
161
|
-
<d2l-tooltip for="tooltip-force-show" force-show>
|
|
162
|
-
Always visible message
|
|
163
|
-
</d2l-tooltip>
|
|
164
|
-
</template>
|
|
165
|
-
</d2l-demo-snippet>
|
|
166
|
-
|
|
167
|
-
<h2>Tooltip (announced)</h2>
|
|
168
|
-
<d2l-demo-snippet>
|
|
169
|
-
<template>
|
|
170
|
-
<d2l-button id="tooltip-announced">Announced</d2l-button>
|
|
171
|
-
<d2l-tooltip for="tooltip-announced" announced>
|
|
172
|
-
Some information
|
|
173
|
-
</d2l-tooltip>
|
|
174
|
-
</template>
|
|
175
|
-
</d2l-demo-snippet>
|
|
176
|
-
|
|
177
|
-
<h2>Tooltip (bounding container)</h2>
|
|
178
|
-
<d2l-demo-snippet>
|
|
179
|
-
<template>
|
|
180
|
-
<div class="bounded">
|
|
181
|
-
<d2l-button id="tooltip-bounded">Bounded Tooltip</d2l-button>
|
|
182
|
-
<d2l-tooltip for="tooltip-bounded">
|
|
183
|
-
A tooltip message inside of a container that hides overflow.
|
|
184
|
-
</d2l-tooltip>
|
|
185
|
-
</div>
|
|
186
|
-
</template>
|
|
187
|
-
</d2l-demo-snippet>
|
|
188
|
-
|
|
189
|
-
<h2>Tooltip (only show if truncating)</h2>
|
|
190
|
-
<d2l-demo-snippet>
|
|
191
|
-
<template>
|
|
192
|
-
<div class="truncated">
|
|
193
|
-
<d2l-button id="tooltip-short"><span>Short Tooltip</span></d2l-button>
|
|
194
|
-
<d2l-tooltip for="tooltip-short" show-truncated-only>
|
|
195
|
-
This tooltip will not show.
|
|
196
|
-
</d2l-tooltip>
|
|
197
|
-
<d2l-button id="tooltip-long"><span>Very Very Very Very Long Tooltip</span></d2l-button>
|
|
198
|
-
<d2l-tooltip for="tooltip-long" show-truncated-only>
|
|
199
|
-
Very Very Very Very Long Tooltip - this tooltip will show because the text is truncating.
|
|
200
|
-
</d2l-tooltip>
|
|
201
|
-
<d2l-link id="link-short" href="https://www.d2l.com" lines="1">Short Text</d2l-link>
|
|
202
|
-
<d2l-tooltip for="link-short" show-truncated-only>
|
|
203
|
-
This tooltip will not show.
|
|
204
|
-
</d2l-tooltip>
|
|
205
|
-
<d2l-link id="link-long" href="https://www.d2l.com" lines="1">Very Very Very Very Long Text</d2l-link>
|
|
206
|
-
<d2l-tooltip for="link-long" show-truncated-only>
|
|
207
|
-
Very Very Very Very Long Text - this tooltip will show because the text is truncating.
|
|
208
|
-
</d2l-tooltip>
|
|
209
|
-
</div>
|
|
210
|
-
</template>
|
|
211
|
-
</d2l-demo-snippet>
|
|
212
|
-
|
|
213
|
-
<h2>Tooltip (dark background)</h2>
|
|
214
|
-
<d2l-demo-snippet>
|
|
215
|
-
<template>
|
|
216
|
-
<div class="dark-background">
|
|
217
|
-
<d2l-button id="tooltip-dark-background">Dark Background</d2l-button>
|
|
218
|
-
<d2l-tooltip for="tooltip-dark-background">
|
|
219
|
-
All tooltips have an outline.
|
|
220
|
-
</d2l-tooltip>
|
|
221
|
-
</div>
|
|
222
|
-
</template>
|
|
223
|
-
</d2l-demo-snippet>
|
|
224
|
-
|
|
225
|
-
<h2>Help Tooltip</h2>
|
|
226
|
-
<d2l-demo-snippet>
|
|
227
|
-
<template>
|
|
228
|
-
<d2l-tooltip-help text="Helpful label">Contents should elaborate on the label (be short and concise)</d2l-tooltip-help>
|
|
229
|
-
<p class="d2l-body-small" style="padding-top: 20px;">
|
|
230
|
-
This is some sample text.
|
|
231
|
-
<d2l-tooltip-help text="Helpful label" inherit-font-style>Contents should elaborate on the label (be short and concise)</d2l-tooltip-help>
|
|
232
|
-
</p>
|
|
233
|
-
<p class="d2l-body-compact">
|
|
234
|
-
This is some sample text.
|
|
235
|
-
<d2l-tooltip-help text="Helpful label" inherit-font-style>Contents should elaborate on the label (be short and concise)</d2l-tooltip-help>
|
|
236
|
-
</p>
|
|
237
|
-
<p class="d2l-body-compact">
|
|
238
|
-
Using an icon.
|
|
239
|
-
<d2l-tooltip-help icon="tier1:edit" text="Helpful label" inherit-font-style>Contents should elaborate on the label (be short and concise)</d2l-tooltip-help>
|
|
240
|
-
</p>
|
|
241
|
-
<p class="d2l-body-compact">
|
|
242
|
-
Using a custom icon.
|
|
243
|
-
<d2l-tooltip-help text="Helpful label" inherit-font-style>
|
|
244
|
-
Contents should elaborate on the label (be short and concise)
|
|
245
|
-
<d2l-icon-custom slot="icon">
|
|
246
|
-
<svg xmlns="http://www.w3.org/2000/svg" mirror-in-rtl="true">
|
|
247
|
-
<path fill="#494c4e" d="M18 12v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-5a1 1 0 0 1 2 0v4h14v-4a1 1 0 0 1 2 0z"/>
|
|
248
|
-
<path fill="#494c4e" d="M13.85 3.15l-2.99-3A.507.507 0 0 0 10.5 0H5.4A1.417 1.417 0 0 0 4 1.43v11.14A1.417 1.417 0 0 0 5.4 14h7.2a1.417 1.417 0 0 0 1.4-1.43V3.5a.47.47 0 0 0-.15-.35zM7 2h1a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm4 10H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm0-4H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/>
|
|
249
|
-
</svg>
|
|
250
|
-
</d2l-icon-custom>
|
|
251
|
-
</d2l-tooltip-help>
|
|
252
|
-
</p>
|
|
253
|
-
<p class="d2l-body-compact" style="max-width: 100px;">
|
|
254
|
-
Wrapped:
|
|
255
|
-
<d2l-tooltip-help text="Due: Jan 20, 2026">Other due date information</d2l-tooltip-help>
|
|
256
|
-
</p>
|
|
257
|
-
</template>
|
|
258
|
-
</d2l-demo-snippet>
|
|
259
|
-
|
|
260
|
-
<d2l-demo-snippet>
|
|
261
|
-
<template>
|
|
262
|
-
<d2l-button id="toggle" disabled-tooltip="This tooltip shows if button is disabled, but only after refocusing">Toggle Disable</d2l-button>
|
|
263
|
-
<script>
|
|
264
|
-
document.querySelector('#toggle').addEventListener('click', e => e.target.disabled = !e.target.disabled);
|
|
265
|
-
document.addEventListener('d2l-tooltip-show', e => console.log('d2l-tooltip-show', e.target));
|
|
266
|
-
document.addEventListener('d2l-tooltip-hide', e => console.log('d2l-tooltip-hide', e.target));
|
|
267
|
-
</script>
|
|
268
|
-
</template>
|
|
269
|
-
</d2l-demo-snippet>
|
|
270
|
-
|
|
271
|
-
</d2l-demo-page>
|
|
272
|
-
|
|
273
|
-
</body>
|
|
274
|
-
|
|
275
|
-
</html>
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<link rel="stylesheet" href="../../demo/styles.css" type="text/css">
|
|
7
|
-
<script type="module">
|
|
8
|
-
import '../../demo/demo-page.js';
|
|
9
|
-
</script>
|
|
10
|
-
</head>
|
|
11
|
-
<body unresolved>
|
|
12
|
-
|
|
13
|
-
<d2l-demo-page page-title="d2l-typography">
|
|
14
|
-
|
|
15
|
-
<h2>Body</h2>
|
|
16
|
-
|
|
17
|
-
<d2l-demo-snippet>
|
|
18
|
-
<div class="d2l-body-standard">Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack.</div>
|
|
19
|
-
</d2l-demo-snippet>
|
|
20
|
-
|
|
21
|
-
<h2>Body Compact</h2>
|
|
22
|
-
|
|
23
|
-
<d2l-demo-snippet>
|
|
24
|
-
<div class="d2l-body-compact">Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack.</div>
|
|
25
|
-
</d2l-demo-snippet>
|
|
26
|
-
|
|
27
|
-
<h2>Body Small</h2>
|
|
28
|
-
|
|
29
|
-
<d2l-demo-snippet>
|
|
30
|
-
<div class="d2l-body-small">Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack.</div>
|
|
31
|
-
</d2l-demo-snippet>
|
|
32
|
-
|
|
33
|
-
<h2>Paragraph</h2>
|
|
34
|
-
|
|
35
|
-
<d2l-demo-snippet>
|
|
36
|
-
<p>Grumpy wizards make toxic brew for the evil Queen and Jack.</p>
|
|
37
|
-
<p>The five boxing wizards jump quickly.</p>
|
|
38
|
-
<p>The wizard quickly jinxed the gnomes before they vaporized.</p>
|
|
39
|
-
</d2l-demo-snippet>
|
|
40
|
-
|
|
41
|
-
<h2>Headings</h2>
|
|
42
|
-
|
|
43
|
-
<d2l-demo-snippet>
|
|
44
|
-
<h3 class="d2l-heading-1">Heading 1</h3>
|
|
45
|
-
<h3 class="d2l-heading-2">Heading 2</h3>
|
|
46
|
-
<h3 class="d2l-heading-3">Heading 3</h3>
|
|
47
|
-
<h3 class="d2l-heading-4">Heading 4</h3>
|
|
48
|
-
</d2l-demo-snippet>
|
|
49
|
-
|
|
50
|
-
<h2>Labels</h2>
|
|
51
|
-
|
|
52
|
-
<d2l-demo-snippet>
|
|
53
|
-
<label class="d2l-label-text">Fancy Shmancy Label</label>
|
|
54
|
-
</d2l-demo-snippet>
|
|
55
|
-
|
|
56
|
-
<h2>Blockquote</h2>
|
|
57
|
-
|
|
58
|
-
<d2l-demo-snippet>
|
|
59
|
-
<blockquote class="d2l-blockquote">Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack.</blockquote>
|
|
60
|
-
</d2l-demo-snippet>
|
|
61
|
-
|
|
62
|
-
<h2>BC Sans</h2>
|
|
63
|
-
|
|
64
|
-
<div class="d2l-body-small">Showing a small selection of glyphs from Canadian Aboriginal blocks known to be different. For a detailed comparison, see the <a href="https://github.com/Brightspace/fonts-lib">fonts-lib</a>'s demo.</div>
|
|
65
|
-
<d2l-demo-snippet>
|
|
66
|
-
<div class="d2l-body-standard" style="font-family: BC Sans, sans-serif;">
|
|
67
|
-
<p>Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack.</p>
|
|
68
|
-
<p style="font-weight: 300;">ᐂ ᐪ ᒤ ᔆ ᔌ ᔕ ᔤ ᔧ ᕯ ᗯ ᘏ ᘗ ᘩ ᘨ ᣱ</p>
|
|
69
|
-
<p>ᐂ ᐪ ᒤ ᔆ ᔌ ᔕ ᔤ ᔧ ᕯ ᗯ ᘏ ᘗ ᘩ ᘨ ᣱ</p>
|
|
70
|
-
<p style="font-weight: 700;">ᐂ ᐪ ᒤ ᔆ ᔌ ᔕ ᔤ ᔧ ᕯ ᗯ ᘏ ᘗ ᘩ ᘨ ᣱ</p>
|
|
71
|
-
<p style="font-style: italic; font-weight: 300;">ᐂ ᐪ ᒤ ᔆ ᔌ ᔕ ᔤ ᔧ ᕯ ᗯ ᘏ ᘗ ᘩ ᘨ ᣱ</p>
|
|
72
|
-
<p style="font-style: italic;">ᐂ ᐪ ᒤ ᔆ ᔌ ᔕ ᔤ ᔧ ᕯ ᗯ ᘏ ᘗ ᘩ ᘨ ᣱ</p>
|
|
73
|
-
<p style="font-style: italic; font-weight: 700;">ᐂ ᐪ ᒤ ᔆ ᔌ ᔕ ᔤ ᔧ ᕯ ᗯ ᘏ ᘗ ᘩ ᘨ ᣱ</p>
|
|
74
|
-
</div>
|
|
75
|
-
</d2l-demo-snippet>
|
|
76
|
-
|
|
77
|
-
<h2>Noto Sans Thai</h2>
|
|
78
|
-
|
|
79
|
-
<div class="d2l-body-small">Showing a small selection of glyphs from Thai script known to require significantly different rendering characteristics from Latin script. For a detailed comparison, see the <a href="https://github.com/Brightspace/fonts-lib">fonts-lib</a>'s demo.</div>
|
|
80
|
-
<d2l-demo-snippet>
|
|
81
|
-
<div class="d2l-body-standard" style='font-family: "Noto Sans Thai", system-ui, Tahoma;'>
|
|
82
|
-
<p>Grumpy wizards make toxic brew for the evil Queen and Jack. Grumpy wizards make toxic brew for the evil Queen and Jack.</p>
|
|
83
|
-
<p>ฯ ๆ ๎ ์ ็ ่ ้ ๊ ๋ ญ ฎ ฏ ฐ ํ ะ ั า ๅ ำ ิ ี ึ ื ุ ู เ แ โ ใ ไ พํุู่้</p>
|
|
84
|
-
<p style="font-weight: 700;">ฯ ๆ ๎ ์ ็ ่ ้ ๊ ๋ ญ ฎ ฏ ฐ ํ ะ ั า ๅ ำ ิ ี ึ ื ุ ู เ แ โ ใ ไ พํุู่้</p>
|
|
85
|
-
<p style="font-style: italic;">ฯ ๆ ๎ ์ ็ ่ ้ ๊ ๋ ญ ฎ ฏ ฐ ํ ะ ั า ๅ ำ ิ ี ึ ื ุ ู เ แ โ ใ ไ พํุู่้</p>
|
|
86
|
-
<p style="font-style: italic; font-weight: 700;">ฯ ๆ ๎ ์ ็ ่ ้ ๊ ๋ ญ ฎ ฏ ฐ ํ ะ ั า ๅ ำ ิ ี ึ ื ุ ู เ แ โ ใ ไ พํุู่้</p>
|
|
87
|
-
</div>
|
|
88
|
-
</d2l-demo-snippet>
|
|
89
|
-
|
|
90
|
-
</d2l-demo-page>
|
|
91
|
-
|
|
92
|
-
</body>
|
|
93
|
-
</html>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { css, html, LitElement } from 'lit';
|
|
2
|
-
import { tableStyles } from '../../table/table-wrapper.js';
|
|
3
|
-
|
|
4
|
-
class TableView extends LitElement {
|
|
5
|
-
static get styles() {
|
|
6
|
-
return [tableStyles, css`
|
|
7
|
-
:host([hidden]) {
|
|
8
|
-
display: none;
|
|
9
|
-
}
|
|
10
|
-
`];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
render() {
|
|
14
|
-
return html`
|
|
15
|
-
<d2l-table-wrapper>
|
|
16
|
-
<table class="d2l-table">
|
|
17
|
-
<thead>
|
|
18
|
-
<tr>
|
|
19
|
-
<th>Name</th>
|
|
20
|
-
<th>Section</th>
|
|
21
|
-
<th>Info</th>
|
|
22
|
-
</tr>
|
|
23
|
-
</thead>
|
|
24
|
-
<tbody>
|
|
25
|
-
<tr>
|
|
26
|
-
<th>Jane Doe</th>
|
|
27
|
-
<td>Section 1</td>
|
|
28
|
-
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra felis sit amet magna eleifend lacinia. Duis faucibus commodo tellus.</td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr>
|
|
31
|
-
<th>John Smith</th>
|
|
32
|
-
<td>Section 2</td>
|
|
33
|
-
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra felis sit amet magna eleifend lacinia. Duis faucibus commodo tellus.</td>
|
|
34
|
-
</tr>
|
|
35
|
-
</tbody>
|
|
36
|
-
</table>
|
|
37
|
-
</d2l-table-wrapper>
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
customElements.define('d2l-demo-table-view', TableView);
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<link rel="stylesheet" href="../../demo/styles.css" type="text/css">
|
|
7
|
-
<script type="module">
|
|
8
|
-
import '../../demo/demo-page.js';
|
|
9
|
-
import '../view-switcher.js';
|
|
10
|
-
import '../view-switcher-button.js';
|
|
11
|
-
import '../../list/list-item-content.js';
|
|
12
|
-
import '../../list/list-item.js';
|
|
13
|
-
import './demo-table-view.js';
|
|
14
|
-
import { listLayouts } from '../../list/list.js';
|
|
15
|
-
window.listLayouts = listLayouts;
|
|
16
|
-
</script>
|
|
17
|
-
</head>
|
|
18
|
-
<body unresolved>
|
|
19
|
-
|
|
20
|
-
<d2l-demo-page page-title="d2l-view-switcher">
|
|
21
|
-
|
|
22
|
-
<h2>View Switcher</h2>
|
|
23
|
-
|
|
24
|
-
<d2l-demo-snippet>
|
|
25
|
-
<d2l-view-switcher label="Layout Options">
|
|
26
|
-
<d2l-view-switcher-button key="list" text="List"></d2l-view-switcher-button>
|
|
27
|
-
<d2l-view-switcher-button selected key="tiles" text="Tiles"></d2l-view-switcher-button>
|
|
28
|
-
<d2l-view-switcher-button key="table" text="Table"></d2l-view-switcher-button>
|
|
29
|
-
</d2l-view-switcher>
|
|
30
|
-
<br><br>
|
|
31
|
-
|
|
32
|
-
<d2l-list layout="tiles">
|
|
33
|
-
<d2l-list-item label="item 1">
|
|
34
|
-
<d2l-list-item-content>
|
|
35
|
-
<div>Jane Doe</div>
|
|
36
|
-
<div slot="secondary">Section 1</div>
|
|
37
|
-
<div slot="supporting-info">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra felis sit amet magna eleifend lacinia. Duis faucibus commodo tellus.</div>
|
|
38
|
-
</d2l-list-item-content>
|
|
39
|
-
</d2l-list-item>
|
|
40
|
-
<d2l-list-item label="item 2">
|
|
41
|
-
<d2l-list-item-content>
|
|
42
|
-
<div>John Smith</div>
|
|
43
|
-
<div slot="secondary">Section 2</div>
|
|
44
|
-
<div slot="supporting-info">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra felis sit amet magna eleifend lacinia. Duis faucibus commodo tellus.</div>
|
|
45
|
-
</d2l-list-item-content>
|
|
46
|
-
</d2l-list-item>
|
|
47
|
-
</d2l-list>
|
|
48
|
-
<d2l-demo-table-view hidden></d2l-demo-table-view>
|
|
49
|
-
|
|
50
|
-
<script data-demo-hide>
|
|
51
|
-
document.querySelector('d2l-view-switcher').addEventListener('d2l-view-switcher-select', e => {
|
|
52
|
-
const list = document.querySelector('d2l-list');
|
|
53
|
-
const table = document.querySelector('d2l-demo-table-view');
|
|
54
|
-
if (e.detail.key === 'table') {
|
|
55
|
-
table.removeAttribute('hidden');
|
|
56
|
-
list.setAttribute('hidden', '');
|
|
57
|
-
} else {
|
|
58
|
-
table.setAttribute('hidden', '');
|
|
59
|
-
list.removeAttribute('hidden');
|
|
60
|
-
list.layout = (e.detail.key === 'tiles' ? window.listLayouts.tiles : window.listLayouts.list);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
</script>
|
|
64
|
-
</d2l-demo-snippet>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</d2l-demo-page>
|
|
69
|
-
|
|
70
|
-
</body>
|
|
71
|
-
</html>
|