0.0.3 • Published 4 years ago

@autodisk/licenseplate v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

npm.io npm.io

Licenplate formatting

This JavaScript package formats the dutch license plates in the correct known formats

Vue.Js

For Vue.js projects

// src/main.js

import { defineCustomElements as defineLicenseplate  }  from '@autodisk/licenseplate/loader';
defineLicenseplate();

Vue.config.ignoredElements = ['ad-licenseplate']

NuxtJs

// nuxt.config.js

plugins: [
  '~plugins/@autodisk/licenseplate.js'
],
// /plugins/autodisk/licenseplate.js

import { defineCustomElements as defineLicenseplate  }  from '@autodisk/licenseplate/loader';
defineLicenseplate();

Usage

<ad-licenseplate licenseplate="######"></ad-licenseplate>
<ad-licenseplate licenseplate="######" type-field="input"></ad-licenseplate>
<ad-licenseplate licenseplate="######" type-field="input" parse-live="true"></ad-licenseplate>

Properties

PropertyAttributeDescriptionTypeDefault
licenseplatelicenseplateLicenseplate property within componentstringundefined
parseLiveparse-liveParsing the input event directlybooleanfalse
typeFieldtype-fieldReturn the type Input or Paragraphstring'text'