Problem in Formkit Schema Text Field #1469
KaranKharabe
started this conversation in
General
Replies: 1 comment
-
I would use a plugin and an input hook: https://formkit.link/37dbfaec28ace9c885a33619ba1f50e5 Information on hooks can be found here: https://formkit.com/essentials/architecture#hooks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
below Code i use but its not work
`<script setup>
import { ref, reactive } from 'vue'
import { FormKitSchema } from '@formkit/vue' // Ensure you have the correct path for FormKitSchema
const workflow = ref('') // Initialize with an empty string or appropriate default value
const schema = [
{
$formkit: 'text',
name: 'workflow',
bind: '$someAttributes',
},
]
const data = reactive({
`someAttributes: {
onInput: (event) => {
workflow.value = event.target.value
}
}
})
</script>
Beta Was this translation helpful? Give feedback.
All reactions