1.1.13 • Published 10 months ago
@csvbox/angular v1.1.13
@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.13
10 months ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.10
2 years ago
1.1.8-alpha.4
2 years ago
1.1.8-alpha.3
2 years ago
1.1.8-alpha.2
2 years ago
1.1.8-alpha.1
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.4-alpha.1
2 years ago
1.1.5-alpha.1
2 years ago
1.1.6-alpha.1
2 years ago
1.1.6-alpha.2
2 years ago
1.1.6-alpha.3
2 years ago
1.1.6-alpha.4
2 years ago
1.1.6-alpha.5
2 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
0.0.20
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
3 years ago
0.0.10
4 years ago
0.0.11
4 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago