vue-formly

WebJar for vue-formly

Лицензия

Лицензия

MIT
Категории

Категории

ORM Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

vue-formly
Последняя версия

Последняя версия

2.5.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

vue-formly
WebJar for vue-formly
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/formly-js/vue-formly

Скачать vue-formly

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vue-formly/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vue-formly</artifactId>
    <version>2.5.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vue-formly/
implementation 'org.webjars.npm:vue-formly:2.5.1'
// https://jarcasting.com/artifacts/org.webjars.npm/vue-formly/
implementation ("org.webjars.npm:vue-formly:2.5.1")
'org.webjars.npm:vue-formly:jar:2.5.1'
<dependency org="org.webjars.npm" name="vue-formly" rev="2.5.1">
  <artifact name="vue-formly" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vue-formly', version='2.5.1')
)
libraryDependencies += "org.webjars.npm" % "vue-formly" % "2.5.1"
[org.webjars.npm/vue-formly "2.5.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : babel-runtime jar [6.23.0,7)
org.webjars.npm : vue jar [2.2.6,3)

Модули Проекта

Данный проект не имеет модулей.

Vue Formly

Looking for maintainers

It's been many years since I first created Vue Formly and it's been a great project. However, it was a project that started because I couldn't quite find anything that fit my requirements at the time. I've sinced moved on, things have changed, and I no longer have the time I need to keep working on this. So if you'd like to get on board or take it into Vue 3 support, you're most welcome.

About

Vue Formly is a JS based form builder heavily inspired by Angular Formly. Vue Formly was designed to provide an easy way to keep your forms consistent and to remove bloat from your code. As there's no "one way" to design your forms, Vue Formly allows you to create custom input types which you can use in your form schemas. Vue Formly itself does not come with any inputs pre-loaded but a set of Boostrap form inputs can be installed over at Vue Formly Bootstrap.

NOTE This is version 2 of Vue Formly and is only compatible with Vue 2.x. If you are wanting to use this with Vue 1.x then check out the Vue Formly 1 Branch.

Installation

npm install vue-formly

Or via a script

<script src="your_dir/vue-formly/vue-formly.min.js"></script>

Usage

Take a look at the docs for extended information about using Formly and creating custom input types. But here is a quick example: NOTE that for Vue Formly to work correctly you must also include a set of input types. You can either create your own or check out Vue Formly Bootstrap which has many already created for you.

<div id="app">
   <form @submit="handleSubmission">
      <formly-form :form="form" :model="model" :fields="fields"></formly-form>
      <button>Submit</button>
   </form>
</div>
new Vue({
   el: '#app',
   data: {
      model: {
         name: '',
         email: '',
         password: ''
      },
      form: {},
      fields: [
         {
            key: 'name',
            type: 'input',
            required: true
         },
         {
            key: 'email',
            type: 'input',
            templateOptions: {
               type: 'email'
            },
            required: true,
            validators: {
               validEmail: checkEmailFunction
            }
         },
         {
            key: 'password',
            type: 'input',
            templateOptions: {
               type: 'password'
            },
            required: true,
            validators: {
               validPassword: checkPasswordFunction
            }
         }
      ]
   }
});
org.webjars.npm

FormlyJS

Home of angular-formly, JavaScript Powered Forms for Angular.

Версии библиотеки

Версия
2.5.1