| 770 | } |
| 771 | |
| 772 | setInputAttributes (inputAttribute, input) { |
| 773 | if (this.schema.options && this.schema.options.inputAttributes) { |
| 774 | const inputAttributes = this.schema.options.inputAttributes |
| 775 | const protectedAttributes = ['name', 'type'].concat(inputAttribute) |
| 776 | const workingInput = input || this.input |
| 777 | Object.keys(inputAttributes).forEach(key => { |
| 778 | if (!protectedAttributes.includes(key.toLowerCase())) { |
| 779 | workingInput.setAttribute(key, inputAttributes[key]) |
| 780 | } |
| 781 | }) |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | setContainerAttributes () { |
| 786 | if (this.schema.options && this.schema.options.containerAttributes) { |