MCPcopy Index your code
hub / github.com/json-editor/json-editor / setInputAttributes

Method setInputAttributes

src/editor.js:772–783  ·  view source on GitHub ↗
(inputAttribute, input)

Source from the content-addressed store, hash-verified

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) {

Callers 6

buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected