Git Product home page Git Product logo

vue-formulate-extended's Introduction

Vue Formulate - Extended Plugin

npm npm

yarn add vue-formulate-extended

# don't forget to have the peer dependencies installed
yarn add @braid/[email protected]

# install only if you want to use text-mask feature
yarn add imask
// main.js
import VueFormulateExtended from 'vue-formulate-extended'

Vue.use(VueFormulate, {
  plugins: [
    VueFormulateExtended({
      features: {
        formEvents: true, // by-default
        textMask: false, // by-default
        enforceNumber: false, // by-default
      },
    }),
  ],
})

Added functionalities

  1. Fix for FormulateForm v-model (see wearebraid/vue-formulate#164)
  2. Hooks strategy to easily add features (see /features folder for examples)
  3. Allow standalone FormulateInput (won't register within a FormulateForm) using `
  4. Allow to use component in slotProps to pass on custom props from FormulateInput to the component itself

(Feel free to check out how I extend the Form, Input and Schema components in /components)

Activable features

Events propagation

Events propagation from schema inputs with events: [] in FormulateForm up to the top via @events Check a live example Check the tests

Text mask

Text mask on a FormulateInput with vfe-mask attribute (works in a FormulateForm schema too) Check a live example Check the tests

Enforce Number

Force number value on a FormulateInput number type with vfe-number attribute (works in a FormulateForm schema too) Check a live example Check the tests

Q&A / Issues

Feel free to open an issue for any question, request or bug.

Tests

yarn test:unit

Build

yarn build

Note: IIFE bundle is way too big. Need some work.

vue-formulate-extended's People

Contributors

gahabeen avatar cavalcanteleo avatar hacknug avatar

Watchers

James Cloos avatar

Forkers

kiennt2 serhanbuy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.