leomax-vanilla-form
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

leomax-vanilla-form

Установка

npm i -S leomax-vanilla-form

Использование (don`t use that)

import Form from 'leomax-vanilla-form';
import 'leomax-vanilla-form/extends/order';

new Form({
  extends: 'order',
  element: '#my-form-id'
});

Интеграция

Добавление масок

import forms from 'lmx-front-component-forms';
import { connectByName } from 'leomax-vanilla-form/lib/Phone';

const myForm = forms.bind({
  selector: '#my-form-id',
  type: 'createOrder'
});
/*
<form>
...
  <input name="myPhone" />
  <input name="mySecondPhone" />
...
</form>
*/
connectByName(myForm, 'myPhone', 'mySecondPhone');

Readme

Keywords

none

Package Sidebar

Install

npm i leomax-vanilla-form

Weekly Downloads

14

Version

0.0.14

License

none

Last publish

Collaborators

  • derasds4