add readonly mode for color picker property editor

This commit is contained in:
Mads Rasmussen
2022-04-28 13:20:11 +02:00
parent 50b17ed262
commit 8923d1a7f5

View File

@@ -5,14 +5,15 @@
<localize key="colorpicker_noColors">You haven't defined any colors</localize>
</div>
<umb-color-swatches colors="model.config.items"
selected-color="model.value"
size="m"
use-label="model.useLabel"
on-select="vm.selectColor(color)">
<umb-color-swatches
colors="model.config.items"
selected-color="model.value"
size="m"
use-label="model.useLabel"
on-select="vm.selectColor(color)"
ng-attr-readonly="{{ readonly || undefined }}">
</umb-color-swatches>
<input type="hidden" name="selectedColor" ng-model="model.selectedColor" val-property-validator="validateMandatory" />
</ng-form>