Custom R widgets and variables include an "Inputs JavaScript" group which allows the adding of custom GUI controls. JavaScript variables currently do not.
This request is to allow the addition of this functionality so ultimately these controls can updated via QScript like you can for R calculations using the properties of "codeForGuiControls" and "setGuiControlInputRaw".