To request access to the OneJS private repo, please message Singtaa on Discord with your Invoice # and Github username. Our Discord is also a great place to chat and search for answers already asked by the community.


Referencing VisualElements

The JSX association with UI Toolkit VisualElement controls is in the 'jsx.d.ts' file in ScriptLib\definitions

To access the VisualElement, create a 'ref' reference to the Element, then typecast the as here.

const tfref = useRef<Dom>();

function onEvent(){
  const tf = as TextField;

return <textfield ref={tfref} text="foo" />
  • Button
  • TextElement
  • TextField
  • SimpleList
  • DropdownField
  • [[VirtualList|Example---Control---List---VirtualList]] ...