0.0.27 • Published 11 months ago

@acourse/forms v0.0.27

Weekly downloads
-
License
CC-BY-ND-3.0
Repository
-
Last release
11 months ago

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>
  1. 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>
  1. 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

11 months ago

0.0.25

11 months ago

0.0.26

11 months ago

0.0.27

11 months ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago