Angular Embed
Using @impler/angular package you can embed CSV Excel Importer into your application with just few lines of code.
Add Script
<script type="text/javascript" src="https://embed.impler.io/embed.umd.min.js" async></script>Install the Package
npm i @impler/angular
# or
yarn add @impler/angularUse Impler Service
import { RouterOutlet } from '@angular/router';
import { isPlatformBrowser } from '@angular/common';
import { Component, Inject, PLATFORM_ID } from '@angular/core';
import { EventCalls, EventTypesEnum, ImplerService } from '@impler/angular';
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.css',
})
export class AppComponent {
title = 'impler-app';
constructor(
private implerService: ImplerService,
@Inject(PLATFORM_ID) private platformId: Object
) {
if (isPlatformBrowser(platformId)) {
this.implerService.initializeImpler();
}
}
public show(): void {
this.implerService.showWidget({
colorScheme: 'dark',
projectId: '...',
templateId: '...',
accessToken: '...',
});
}
}Customize Texts
Listening for Events
Event Name
Data Type
Description
Usage Example
Applying App's Color Scheme
Data Seeding in Sample File
Providing Runtime Schema
Advanced Validations
Using Typescript
Passing Extra Parameters
Programmatically Closing Import Widget
Changing Import Title
Changing Theme Color
Providing Authentication Header Value
Last updated
Was this helpful?