pass start from
This commit is contained in:
@@ -7,6 +7,7 @@ import type { UmbInputDocumentElement } from '@umbraco-cms/backoffice/document';
|
||||
import type { UmbInputMediaElement } from '@umbraco-cms/backoffice/media';
|
||||
import type { UmbInputMemberElement } from '@umbraco-cms/backoffice/member';
|
||||
import type { UmbReferenceByUniqueAndType } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbTreeStartFrom } from '@umbraco-cms/backoffice/tree';
|
||||
|
||||
const elementName = 'umb-input-content';
|
||||
@customElement(elementName)
|
||||
@@ -28,15 +29,15 @@ export class UmbInputContentElement extends UUIFormControlMixin(UmbLitElement, '
|
||||
return this._type;
|
||||
}
|
||||
|
||||
@property({ type: String })
|
||||
startNodeId?: string;
|
||||
|
||||
@property({ type: Number })
|
||||
min = 0;
|
||||
|
||||
@property({ type: Number })
|
||||
max = 0;
|
||||
|
||||
@property({ type: Object, attribute: false })
|
||||
startFrom?: UmbTreeStartFrom;
|
||||
|
||||
private _allowedContentTypeIds: Array<string> = [];
|
||||
@property()
|
||||
public set allowedContentTypeIds(value: string) {
|
||||
@@ -113,7 +114,7 @@ export class UmbInputContentElement extends UUIFormControlMixin(UmbLitElement, '
|
||||
#renderDocumentPicker() {
|
||||
return html`<umb-input-document
|
||||
.selection=${this.#selection}
|
||||
.startNodeId=${this.startNodeId}
|
||||
.startFrom=${this.startFrom}
|
||||
.allowedContentTypeIds=${this._allowedContentTypeIds}
|
||||
.min=${this.min}
|
||||
.max=${this.max}
|
||||
|
||||
Reference in New Issue
Block a user