Commit 4c183cbe authored by sai.sandeep's avatar sai.sandeep

hover text and button color

parent d200e814
<div class="app-container"> <div class="app-container">
<app-toastr></app-toastr> <app-toastr></app-toastr>
<app-loader></app-loader> <app-loader></app-loader>
<div>
<div class="text-center main-header">
<h6 class="m-0">BHC Meta Tagging</h6>
</div>
</div>
<router-outlet></router-outlet> <router-outlet></router-outlet>
<!-- <app-footer></app-footer> --> <!-- <app-footer></app-footer> -->
</div> </div>
\ No newline at end of file
...@@ -15,9 +15,14 @@ ...@@ -15,9 +15,14 @@
<div class="col-12 "> <div class="col-12 ">
<div class="tags-container pb-1"> <div class="tags-container pb-1">
<label class="grey-label ps-3">Tags:</label> <label class="grey-label ps-3">Tags:</label>
<button *ngFor="let data of inputData.class_details" type="button" class="btn btn-primary m-1 " (click)="addAnnotation(data)"> <ng-container *ngFor="let data of inputData.class_details">
{{data}} <button type="button" class="btn default-datatype m-1 " (click)="addAnnotation(data)" *ngIf="inputData['defaultDataType'] === data" ngbTooltip="Default Data Type">
</button> {{data}}
</button>
<button type="button" class="btn btn-primary m-1 " (click)="addAnnotation(data)" *ngIf="inputData['defaultDataType'] !== data">
{{data}}
</button>
</ng-container>
</div> </div>
</div> </div>
<div class="col-md-12 mt-3"> <div class="col-md-12 mt-3">
......
...@@ -23,4 +23,13 @@ ...@@ -23,4 +23,13 @@
.datatype-text { .datatype-text {
max-height: 4rem; max-height: 4rem;
overflow-y: auto; overflow-y: auto;
}
.default-datatype {
background: #ed8b00;
color: #FFF;
&:hover {
background: #ffc107;
color: #FFF;
}
} }
\ No newline at end of file
...@@ -10,6 +10,7 @@ import { AnnotateTextComponent } from './annotate-text/annotate-text.component'; ...@@ -10,6 +10,7 @@ import { AnnotateTextComponent } from './annotate-text/annotate-text.component';
import { NgxAnnotateTextModule } from 'ngx-annotate-text'; import { NgxAnnotateTextModule } from 'ngx-annotate-text';
import { NgSelectModule } from '@ng-select/ng-select'; import { NgSelectModule } from '@ng-select/ng-select';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
...@@ -26,7 +27,8 @@ import { FormsModule } from '@angular/forms'; ...@@ -26,7 +27,8 @@ import { FormsModule } from '@angular/forms';
SimpleTableWithPaginationModule, SimpleTableWithPaginationModule,
ToasterModule, ToasterModule,
TableServerSideModule, TableServerSideModule,
NgxAnnotateTextModule NgxAnnotateTextModule,
NgbModule
], ],
exports:[ exports:[
SimpleTableWithPaginationModule, SimpleTableWithPaginationModule,
......
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
</ng-template> </ng-template>
<!-- th.clickAble.condition --> <!-- th.clickAble.condition -->
<ng-template #clickableCell> <ng-template #clickableCell>
<span class="active clickable-element" [ngClass]="settings?.clickableColumns?.class" (click)="cellClick(tr,th)"> <span class="active clickable-element" [ngClass]="settings?.clickableColumns?.class" (click)="cellClick(tr,th)" [title]="tr[th.key]">
<ng-container <ng-container
*ngIf="th.clickAble?.condition?.altText?.value ; then clickableWithAlt else clickableWithoutAlt"> *ngIf="th.clickAble?.condition?.altText?.value ; then clickableWithAlt else clickableWithoutAlt">
</ng-container> </ng-container>
......
...@@ -465,6 +465,7 @@ export class LandingComponent implements OnInit { ...@@ -465,6 +465,7 @@ export class LandingComponent implements OnInit {
this.http.API_REQUEST(request).subscribe((response) => { this.http.API_REQUEST(request).subscribe((response) => {
if (response.status === 'SUCCESS' && response.data) { if (response.status === 'SUCCESS' && response.data) {
this.annotateData = response.data; this.annotateData = response.data;
this.annotateData['defaultDataType'] = data['data_type'];
this.modalService.open(this.editPopup, this.modalOptions); this.modalService.open(this.editPopup, this.modalOptions);
} else { } else {
this._toast.toast('warning', 'Warning', response.message || 'Error while Loading data.', true); this._toast.toast('warning', 'Warning', response.message || 'Error while Loading data.', true);
......
<div>
<div>
<div class="text-center main-header">
<h6 class="m-0">BHC Meta Tagging</h6>
</div>
</div>
</div>
<div> <div>
<router-outlet></router-outlet> <router-outlet></router-outlet>
</div> </div>
\ No newline at end of file
...@@ -29,13 +29,13 @@ ...@@ -29,13 +29,13 @@
} }
], ],
"body_content": [{ "body_content": [{
"table_name": "Table1", "table_name": "Table1asfashlfaslfhsdalfhsldafjhsaldfjhlsdafhalsfjhsdalfjhladsfasdhf",
"data_type": "Type1", "data_type": "DISEASE",
"status": "<span class=\"text-success\" > <i class=\"fa fa-check-circle-o\"></i>&nbsp;Completed </span>" "status": "<span class=\"text-success\" > <i class=\"fa fa-check-circle-o\"></i>&nbsp;Completed </span>"
}, },
{ {
"table_name": "Table1", "table_name": "Table1",
"data_type": "Type1", "data_type": "PROBLEM",
"status": "<span class=\"text-grey\" > <i class=\"fa fa-check-circle-o\"></i>&nbsp;Pending </span>" "status": "<span class=\"text-grey\" > <i class=\"fa fa-check-circle-o\"></i>&nbsp;Pending </span>"
} }
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment