it's fairly inconsistent. sometimes you can set it with document.querySelector('#my-aframe-gui-thing').setAttribute('gui-item', 'value', 'newtext'), sometimes with document.querySelector('#my-aframe-gui-thing').setAttribute('gui-item', 'text', 'newtext'), maybe it isn't gui-item but the actual gui-component, etc. But often it doesn't work (e.g., radio, and I think there's a pull request for button--does work for text input and labels, for example, though). Needs standardization and fixing throughout all components consistently.
it's fairly inconsistent. sometimes you can set it with
document.querySelector('#my-aframe-gui-thing').setAttribute('gui-item', 'value', 'newtext'), sometimes withdocument.querySelector('#my-aframe-gui-thing').setAttribute('gui-item', 'text', 'newtext'), maybe it isn'tgui-itembut the actual gui-component, etc. But often it doesn't work (e.g., radio, and I think there's a pull request for button--does work for text input and labels, for example, though). Needs standardization and fixing throughout all components consistently.