diff --git a/components/list/demo/list-drag-and-drop-position.js b/components/list/demo/list-drag-and-drop-position.js
index 6b24852ac5e..d0c94c071b8 100644
--- a/components/list/demo/list-drag-and-drop-position.js
+++ b/components/list/demo/list-drag-and-drop-position.js
@@ -1,7 +1,7 @@
import '../list-item-content.js';
import '../list-item.js';
import '../list.js';
-import { html, LitElement } from 'lit';
+import { css, html, LitElement, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { repeat } from 'lit/directives/repeat.js';
@@ -14,10 +14,21 @@ class ListDemoDragAndDropPosition extends LitElement {
// below are for demonstration only
grid: { type: Boolean },
hrefs: { type: Boolean },
- selectable: { type: Boolean }
+ selectable: { type: Boolean },
+ tiles: { type: Boolean },
+ tileHeader: { type: Boolean, attribute: 'tile-header' },
+ actions: { type: Boolean, attribute: 'actions' }
};
}
+ static styles = css`
+ .actions-containter {
+ align-items: center;
+ display: flex;
+ height: 100%;
+ }
+ `;
+
constructor() {
super();
this.list = [
@@ -73,11 +84,13 @@ class ListDemoDragAndDropPosition extends LitElement {
?grid="${this.grid}"
@d2l-list-item-position-change="${this._moveItems}"
?add-button="${this.addButton}"
- add-button-text="${ifDefined(addButtonText)}">
+ add-button-text="${ifDefined(addButtonText)}"
+ layout="${this.tiles ? 'tiles' : 'list'}">
${repeat(this.list, (item) => item.key, (item) => html`