⛤ND⛤
⛤ND⛤
SSolidJS
Created by ⛤ND⛤ on 10/6/2024 in #support
how to make an input field that only allows numbers ?
that's an very beginner question. How to only allow number's in an input field BUT with out the usage of dedicated Signal's for an field or anything really complicated ? (I am using TypeScript ) It would also have to include float numbers
20 replies
SSolidJS
Created by ⛤ND⛤ on 6/1/2023 in #support
passing signal to component
i try to pass a signal set function to a component but when i try to use the function inside the component i only get a props.settask is not a function error
<Todo name={cat} settodo={settasks()} list={task()}/>
<Todo name={cat} settodo={settasks()} list={task()}/>
the component inside the main app
export default function todo(props){

return(
<li><button onclick={props.settasks([])}>{props.name}</button></li>
);
}
export default function todo(props){

return(
<li><button onclick={props.settasks([])}>{props.name}</button></li>
);
}
the component
12 replies