forked from enviPath/enviPy
[Feature] PEPPER in enviPath (#332)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#332
This commit is contained in:
@ -161,8 +161,18 @@ document.addEventListener("alpine:init", () => {
|
||||
set value(v) {
|
||||
this.data[this.fieldName] = v;
|
||||
},
|
||||
get multiple() {
|
||||
return !!(this.fieldSchema.items && this.fieldSchema.items.enum);
|
||||
|
||||
},
|
||||
get options() {
|
||||
return this.fieldSchema.enum || [];
|
||||
if (this.fieldSchema.enum) {
|
||||
return this.fieldSchema.enum;
|
||||
} else if (this.fieldSchema.items && this.fieldSchema.items.enum) {
|
||||
return this.fieldSchema.items.enum;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user