@dynaccurate/terminology-management v0.0.6
TerminologyManagementModule
This project was generated with Angular CLI version 12.2.9.
Instalation
Run npm install --save @dynaccurate/terminology-management to install de package. Add the TerminologyManagementModule on your AppModule:
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { TerminologyManagementModule } from 'terminology-management-module/dist/terminology-management';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
CommonModule,
BrowserModule,
TerminologyManagementModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Components
List of components:
- Summary
Summary
Component that displays a List of Terminologies with a few actions.
Selector: <tm-summary></tm-summary>
Props: | Prop | Type | Is Required | Default | Description | |--------------|---------------|-------------|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | title | string | false | "List of Terminologies" | The title of table | | data | Terminology[] | false | undefined | If undefined the component will request to serve a list of Terminologies, if defined with a value the list will be replaced with the value | | handleDelete | Function | false | () => {} | Function that execute before delete a Terminology. It is useful to define a confirmation before delete a Terminology. The function receive as a parameter the Terminology. Must return a Promise. | | handleExport | Function | true | none | Function that execute before export a Terminology. Is necessary that te function return a Promise with the data to export the Terminology. The function receive as a parameter the Terminology The data is an Object that contains: terminolodyId, recipientEmail, format. | | except | string[] | false | [] | A list of Terminology field names that will not shown on the table. |
Events: | Event | Value | Description | |---------|-------------------------|---------------------------------------------------------------------------------------| | loading | boolean | Return true when a loading start and false when is finished | | success | Response Message Object | Return the response message object from a HttpRequest | | error | Exception Object | Return the error from HttpRequest |
Slots: | Name | Description | |----------|---------------------------------------------------------------------------------------------| | notFound | A slot to complement the "notFound" message. The default is the string "No results found.." | | loading | A slot to complement the "loading" message. The default is the string "Loading..." |