@autodisk/licenseplate
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Property Attribute Description Type Default
licenseplate licenseplate Licenseplate property within component string undefined
parseLive parse-live Parsing the input event directly boolean false
typeField type-field Return the type Input or Paragraph string 'text'

Readme

Keywords

none

Package Sidebar

Install

npm i @autodisk/licenseplate

Weekly Downloads

33

Version

0.0.3

License

MIT

Unpacked Size

303 kB

Total Files

41

Last publish

Collaborators

  • autodisk