add options and context to AttributeChoiceField
This commit is contained in:
parent
f6518cba74
commit
0753dd44ab
@ -272,7 +272,7 @@ class AttributeField extends SchemaField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class AttributeChoiceField extends StringField {
|
class AttributeChoiceField extends StringField {
|
||||||
constructor() {
|
constructor(options={}, context={}) {
|
||||||
return super({
|
return super({
|
||||||
required: true,
|
required: true,
|
||||||
choices: {
|
choices: {
|
||||||
@ -286,7 +286,8 @@ class AttributeChoiceField extends StringField {
|
|||||||
"strength": "DSA41.attributes.long.strength",
|
"strength": "DSA41.attributes.long.strength",
|
||||||
},
|
},
|
||||||
initial: "courage",
|
initial: "courage",
|
||||||
});
|
...options,
|
||||||
|
}, context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user