Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): include extras functionality in analysis sample #3384

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<igc-dockmanager #dock class="light-theme dock-m-position" [layout]="docLayout">
<div slot="grid" igxOverlayOutlet style="height: 100%">
<igx-grid #grid columnSelection="multiple" [moving]="true" chartIntegration conditionalFormatting [formatter]="currentFormatter"
<igx-grid #grid columnSelection="multiple" [moving]="true" igxChartIntegration igxConditionalFormatting igxContextMenu
[chartData]="chartData" primaryKey="id" displayDensity="compact" [data]="data"
[allowFiltering]="true" [filterMode]="'excelStyleFilter'">
<igx-column [sortable]="true" [disablePinning]="true" [disableHiding]="true" field="id" [hidden]="true"></igx-column>
Expand Down Expand Up @@ -108,8 +108,8 @@
<div class="types-section">
<div *ngFor="let chart of (allCharts | filterType: chartType); let i=index"
(click)="createChart(chart)"
title="{{chart | name}}"
[ngClass]="{'disabled': availableCharts.indexOf(chart) === -1, 'selected': chart | hastDuplicateLayouts: dock.layout: selectedCharts}"
title="{{chart}}"
[ngClass]="{'disabled': allCharts.indexOf(chart) === -1, 'selected': chart | hastDuplicateLayouts: dock.layout: selectedCharts}"
style="width: 60px; margin-right: 20px; cursor: pointer; position: relative;">
<img src="assets/images/svg/charts/{{chart}}.svg" />
<igx-badge *ngIf="selectedCharts[chart]" icon="check"></igx-badge>
Expand All @@ -124,36 +124,3 @@
</app-dock-slot>
</igc-dockmanager>

<span *ngIf="contextmenu" class="analytics-btn" [ngStyle]="{'left.px': contextmenuX, 'top.px': contextmenuY}"
(click)="toggleContextDialog(button)">
<button #button igxButton="icon">
<igx-icon #icon style="pointer-events: none;" class="icon" family="material">insert_chart_outlined</igx-icon>
</button>
</span>

<!-- this block can be moved in another component -->
<igx-dialog #contextDialog>
<div #dialogContent class="tab-options-wrapper">
<div class="header">
<span>CONDITIONAL FORMATTING</span>
<div class="clear-action" [ngClass]="{'disableButton': !hasFormatter}">
<div class="btn" (click)="clearFormatting()">
<img style="width: 18px; height: 18px;" src="assets/images/svg/conditions/Clear.svg" />
</div>
</div>
</div>
<div class="tab-option">
<div *ngFor="let condition of formattersNames" class="action" [ngClass]="{'selected--condition': condition === currentFormatter}">
<div class="btn condition" (click)="analyse(condition)">
<img style="width: 36px; height: 36px;"
src="assets/images/svg/conditions/{{condition.replace(' ', '')}}.svg" />
<span class="name">{{condition.replace('10', '10%')}}</span>
</div>
</div>
</div>
</div>
</igx-dialog>

<ng-template #template>
<span>Incompatible data</span>
</ng-template>
Loading