budibase/packages/standard-components/src/Input.svelte

23 lines
330 B
Svelte
Raw Normal View History

<script>
export let value="";
2020-01-18 10:00:18 +01:00
export let className = "";
export let type = "text";
export let _bb;
let actualValue = "";
const onchange = (ev) => {
if(_bb) {
2019-10-19 08:24:20 +02:00
_bb.setStateFromBinding(_bb.props.value, ev.target.value);
}
}
</script>
<input class={className}
type={type}
value={value}
on:change={onchange}/>