mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3484] - Metadata drop-down list option for properties constrained by a list of values (#5892)
* update js-api * include definition field * process LIST constraint * update tests * dropdown visibility * optional chaining
This commit is contained in:
@@ -37,6 +37,9 @@ export class CardViewSelectItemComponent extends BaseCardView<CardViewSelectItem
|
||||
@Input()
|
||||
displayNoneOption: boolean = true;
|
||||
|
||||
@Input()
|
||||
displayEmpty: boolean = true;
|
||||
|
||||
value: string;
|
||||
|
||||
constructor(cardViewUpdateService: CardViewUpdateService) {
|
||||
@@ -64,4 +67,8 @@ export class CardViewSelectItemComponent extends BaseCardView<CardViewSelectItem
|
||||
showNoneOption() {
|
||||
return this.displayNoneOption;
|
||||
}
|
||||
|
||||
get showProperty(): boolean {
|
||||
return this.displayEmpty || !this.property.isEmpty();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user