@autodisk/licenseplate
v0.0.3
Published
Dutch licenseplate formatting
Downloads
64
Readme
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'
|