0.0.2 • Published 2 years ago
kebs-attachments-tab v0.0.2
kebsAttachmentsTab
The kebs-attachments-tab
is used to for basic attachment operations like upload,delete,download
documents provided token and url.
Table of Contents
Installation
You can install the package using following command.
$ npm install kebs-attachments-tab
Usage
app.module.ts
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { KebsAttachmentsTabModule } from 'kebs-attachments-tab'
@NgModule({
declarations: [
AppComponent
],
imports: [
CommonModule,
KebsAttachmentsTabModule
],
providers: [],
})
export class AppModule { }
app.component.html
<kebs-attachments-tab
[itemId]="unique_id" [token]="token"
[urls]="attachmentTabUrls">
</kebs-attachments-tab>
app.component.ts
token = "eyJ0eXAiOiJKV1QiL";
urls ="/urlPath";
attachmentTabUrls = {
uploadAttachmentUrl: "/urlPath",
downloadAttachmentUrl: "/urlPath",
deleteAttachmentUrl: "/urlPath",
fetchAttachmentUrl: "/urlPath",
updateAttachmentUrl: "/urlPath"
}
itemId = 3421
Inputs
Property | Type | Description |
---|---|---|
url | Object | Url to be loaded |
token | string | Bearer token |
itemId | int | unique item id in which notes are stored |