employment-verification
v0.0.2
Published
Verification of Employment (and Income) by Plextera Studio
Readme
Verification of Employment (and Income) widget by Plextera Studio
This widget represents a Web Component, so it works in any major framework or with no framework at all and runs in any browser supporting the Custom Elements specification.
Getting Started
To use Verification of Employment widget on any website, inject this into your HTML:
<script type="module" src="https://unpkg.com/employment-verification"></script>
<pl-voe></pl-voe>This will only load the necessary scripts needed to render <pl-voe />.
You can also import the script as part of your node_modules in your applications entry file:
import 'employment-verification';In a React + TypeScript environment you may need to create declarations.d.ts file in root folder for custom tag definition:
import { JSX as EmplVerifJSX } from 'employment-verification';
declare global {
namespace JSX {
interface IntrinsicElements extends EmplVerifJSX.IntrinsicElements {}
}
}In Angular Web Components could be enabled in the following way:
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
@NgModule({
...
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}The widget sends API requests to https://api.plextera.com. This domain should be added to Access-Control-Allow-Origin header on the server or a reverse proxy should be implemented to bypass CORS error.
Component Attributes
| Attribute | Description | Type | Default |
| -------------------------- | -------------------------------------------------------------------------------- | ------------ | -------------- |
| open | If true, the component is shown | boolean | |
| onclose | Callback function called on window close | () => void | |
