2019-10-16 06:38:45 +02:00
|
|
|
<script>
|
|
|
|
|
|
|
|
export let value="";
|
2020-01-18 10:00:18 +01:00
|
|
|
export let className = "";
|
2019-10-16 06:38:45 +02:00
|
|
|
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);
|
2019-10-16 06:38:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<input class={className}
|
|
|
|
type={type}
|
|
|
|
value={value}
|
|
|
|
on:change={onchange}/>
|