Hi,
To achieve something similar, you can do this:
function App() {
const myNumberInput = useRef();
const listenerApplied = useRef(false);
const [currentStep, setCurrentStep] = useState(1);
useEffect(() => {
if (myNumberInput.current && !listenerApplied.current) {
listenerApplied.current = true;
document.querySelector(${myNumberInput.current._componentSelector} .jqx-action-button
)
?.addEventListener(‘click’, (e) => {
setCurrentStep(s => s * 10)
})
}
}, [])
return (
<div className=”application”>
<JqxNumberInput
ref={myNumberInput}
spinButtons={true}
spinButtonsStep={currentStep}
/>
</div >
);
}
Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/