🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@csvbox/angular2

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csvbox/angular2

Standalone Angular component for csvbox.io supporting Angular version 14 till 19

1.0.1
latest
Source
npm
Version published
Weekly downloads
367
18.39%
Maintainers
4
Weekly downloads
 
Created
Source

@csvbox/angular2

Standalone Angular component for csvbox.io supporting Angular version 14 till 19

✅ Only for Angular version 14 to 19

⚠️ For Angular version 13 or less, please use @csvbox/angular package

NPM JavaScript Style Guide

Compatibility

Angular VersionPackage
8 to 13@csvbox/angular
14 to 19@csvbox/angular2 (this package)

Shell

npm install @csvbox/angular2

Import

Add CSVBoxButtonComponent to your module imports

import { CSVBoxButtonComponent } from "@csvbox/angular2";

@NgModule({
  ...
  imports: [
    ...
    CSVBoxButtonComponent
  ]
})

Usage

<csvbox-button [licenseKey]="licenseKey" [isImported]="isImported.bind(this)" [user]="user">Import</csvbox-button>

Example


@Component({
  selector: 'app-root',
  template: `
    <csvbox-button
      [licenseKey]="licenseKey"
      [user]="user"
      [isImported]="isImported.bind(this)">
      Import
    </csvbox-button>
  `
})

export class AppComponent {

  title = 'example';
  licenseKey = 'YOUR_LICENSE_KEY_HERE';
  user = { user_id: 'default123' };

  isImported(result: boolean, data: any) {
    if(result) {
      console.log("Sheet uploaded successfully");
      console.log(data.row_success + " rows uploaded");
    }else{
      console.log("There was some problem uploading the sheet");
    }
  }

}

Events

EventDescription
isReadyTriggers when the importer is initialized and ready for use by the users.
isClosedTriggers when the importer is closed.
isSubmittedTriggers when the user hits the 'Submit' button to upload the validated file. data object is available in this event. It contains metadata related to the import.
isImportedTriggers when the data is pushed to the destination.
Two objects are available in this event:
1. result (boolean): It is true when the import is successful and false when the import fails.
2. data (object): Contains metadata related to the import.

Readme

For usage see the guide here - https://help.csvbox.io/getting-started#2-install-code

License

MIT © csvbox-io

Keywords

csv

FAQs

Package last updated on 25 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts