add table collection layout
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user