add table collection layout

This commit is contained in:
Jesper Møller Jensen
2022-12-19 15:35:46 +01:00
parent ac97137fe1
commit c94b6dd370
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { UUITextStyles } from '@umbraco-ui/uui-css';
import { css, html, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';
@customElement('umb-collection-layout-table')
export class UmbCollectionLayoutTableElement extends LitElement {
static styles = [UUITextStyles, css``];
render() {
return html`umb-collection-layout-table`;
}
}
declare global {
interface HTMLElementTagNameMap {
'umb-collection-layout-table': UmbCollectionLayoutTableElement;
}
}

View File

@@ -15,4 +15,18 @@ export const manifests: Array<ManifestCollectionLayout> = [
pathName: 'grid',
},
},
{
type: 'collectionLayout',
alias: 'Umb.CollectionLayout.Table',
name: 'Table',
elementName: 'umb-collection-layout-table',
loader: () => import('./collection-layout-table.element'),
weight: 100,
meta: {
label: 'Table',
icon: 'umb:table',
entityType: 'media',
pathName: 'table',
},
},
];