add getters

This commit is contained in:
Jacob Overgaard
2024-03-05 18:31:09 +01:00
parent 18446989c3
commit d064bca922
2 changed files with 6 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ export class UmbInputDocumentElement extends FormControlMixin(UmbLitElement) {
// Its with full purpose we don't call super.value, as thats being handled by the observation of the context selection.
this.selectedIds = splitStringToArray(idsString);
}
public get value() {
return this.selectedIds.join(',');
}
@state()
private _editDocumentPath = '';

View File

@@ -96,6 +96,9 @@ export class UmbInputMediaElement extends FormControlMixin(UmbLitElement) {
// Its with full purpose we don't call super.value, as thats being handled by the observation of the context selection.
this.selectedIds = splitStringToArray(idsString);
}
public get value() {
return this.selectedIds.join(',');
}
@state()
private _editMediaPath = '';