The React component function that receives props including data, userState, callbacks, utilities, and styles.
OptionalfocusSets focus to a specific element within the component.
Optionaltarget: string | HTMLElementElement selector or element reference
OptionalgetGets the current data state of the component. Used by AI agents to understand what data is currently displayed. Returns undefined if the component has no data to report.
OptionalhasCheck if a method is registered on the component
Name of the method to check
true if the method exists
OptionalinvokeGeneric method invoker for custom methods
Name of the method to invoke
Arguments to pass to the method
The result of the method call, or undefined if method doesn't exist
OptionalisChecks if the component has unsaved changes.
OptionalprintThe optional print function that is called when the user clicks on the print button in the parent of the component. This function will never be called by the parent before the init function so the print function can assume the component has been initialized;
OptionalrefreshThe optional refresh function that is called when the user clicks on the refresh button in the parent of the component. This function will never be called by the parent before the init function so the refresh function
OptionalresetResets the component to its initial state.
OptionalscrollScrolls to a specific element or position within the component.
Element selector, element reference, or scroll options
OptionalsetRestores or applies a data state snapshot to the component. Returns true if the snapshot was successfully applied, false otherwise.
OptionalvalidateValidates the current state of the component. Returns true if valid, false or validation errors otherwise.
The component will create this object and it will include the members defined in this interface and return upon its main function being called.