1.1.11 • Published 13 days ago
@csvbox/angular v1.1.11
@csvbox/angular
Angular adapter for csvbox.io
Shell
npm install @csvbox/angular
Import
Add CSVBoxAngularModule
to your module imports
import { CSVBoxAngularModule } from "@csvbox/angular";
@NgModule({
...
imports: [
...
CSVBoxAngularModule
]
})
Usage
<csvbox-button [licenseKey]="licenseKey" [onImport]="onData.bind(this)" [user]="user">Import</csvbox-button>
Example
import { CSVBoxMethods } from "@csvbox/angular"
@Component({
selector: 'app-root',
template: `
<csvbox-button
[licenseKey]="licenseKey"
[user]="user"
[onImport]="onData.bind(this)">
Import
</csvbox-button>
`
})
export class AppComponent implements CSVBoxMethods {
title = 'example';
licenseKey = 'YOUR_LICENSE_KEY_HERE';
user = { user_id: 'default123' };
onData(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");
}
}
}
Readme
For usage see the guide here - https://help.csvbox.io/getting-started#2-install-code
License
MIT © csvbox-io
1.1.11
13 days ago
1.1.10
9 months ago
1.1.8-alpha.4
1 year ago
1.1.8-alpha.3
1 year ago
1.1.8-alpha.2
1 year ago
1.1.8-alpha.1
1 year ago
1.1.9
1 year ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.4-alpha.1
1 year ago
1.1.5-alpha.1
1 year ago
1.1.6-alpha.1
1 year ago
1.1.6-alpha.2
1 year ago
1.1.6-alpha.3
1 year ago
1.1.6-alpha.4
1 year ago
1.1.6-alpha.5
1 year ago
1.1.2
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
0.0.20
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago