1
0
Fork 0
mirror of synced 2024-09-16 09:17:40 +12:00
budibase/packages/standard-components/src/Input.svelte

15 lines
318 B
Svelte
Raw Normal View History

<script>
import { getContext } from "svelte"
const { styleable, setBindableValue } = getContext("sdk")
const component = getContext("component")
let value
2021-01-12 04:34:43 +13:00
function onBlur() {
setBindableValue(value, $component.id)
}
</script>
2021-01-12 04:34:43 +13:00
<input bind:value on:blur={onBlur} use:styleable={$component.styles} />