0.0.27 • Published 2 years ago
@acourse/forms v0.0.27
USAGE:
This Package is supposed to be used to offer Services from acourse on customer Websites with vue 3.
First import CSS. Important: Please import the file at the very beginning, before any other potential tailwindcss import.
import "@acourse/forms/dist/style.css";
Initialize the Form: 1. With URL from the Web App
<template>
<div id="form" />
</template>
<script setup lang="ts">
import { Form } from "@acourse/forms";
const form = new Form({
key: KEY,
url: URL
});
onMounted(() => {
form.fetchForm().then(() => {
form.mount();
});
})
</script>
- With Key and T Parameter
<template>
<div id="form" />
</template>
<script setup lang="ts">
import { Form } from "@acourse/forms";
const form = new Form({
key: KEY,
t: T
});
onMounted(() => {
form.fetchForm().then(() => {
form.mount();
});
})
</script>
- With own Fetch Logic
<template>
<div id="form" />
</template>
<script setup lang="ts">
import { Form } from "@acourse/forms";
const preFetchedDefinition: FormDto
const form = new Form({
key: KEY
});
onMounted(() => {
form.setForm(preFetchedDefinition);
form.mount();
})
</script>
0.0.24
2 years ago
0.0.25
2 years ago
0.0.26
2 years ago
0.0.27
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.22
2 years ago
0.0.23
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago