Skip to content
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
Expand Up @@ -9,37 +9,40 @@
name="propertyEditorPanel1"
#propertyEditorPanel1>
<igx-property-editor-property-description
propertyPath="InitialGroups"
propertyPath="InitialGroupsHandler"
name="InitialGroups"
#initialGroups
label="Initial Groups"
valueType="EnumValue"
shouldOverrideDefaultEditor="true"
dropDownNames="Country, Product, MonthName, Year"
dropDownValues="Country, Product, MonthName, Year"
primitiveValue="Country">
primitiveValue="Country"
(changed)="this.editorChangeUpdateInitialGroups($event)">
</igx-property-editor-property-description>
<igx-property-editor-property-description
propertyPath="InitialSummaries"
propertyPath="InitialSummariesHandler"
name="InitialSummaries"
#initialSummaries
label="Initial Summaries"
valueType="EnumValue"
shouldOverrideDefaultEditor="true"
dropDownNames="Sum(Sales), Avg(Sales), Min(Sales), Max(Sales), Count(Sales)"
dropDownNames="Sum(Sales) as Sales, Avg(Sales) as Sales, Min(Sales) as Sales, Max(Sales) as Sales, Count(Sales) as Sales"
dropDownValues="Sum(Sales) as Sales, Avg(Sales) as Sales, Min(Sales) as Sales, Max(Sales) as Sales, Count(Sales) as Sales"
primitiveValue="Sum(Sales) as Sales">
primitiveValue="Sum(Sales) as Sales"
(changed)="this.editorChangeUpdateInitialSummaries($event)">
</igx-property-editor-property-description>
<igx-property-editor-property-description
propertyPath="GroupSorts"
propertyPath="GroupSortsHandler"
name="GroupSorts"
#groupSorts
label="Sort Groups"
valueType="EnumValue"
shouldOverrideDefaultEditor="true"
dropDownNames="Sales Desc, Sales Asc"
dropDownValues="Sales Desc, Sales Asc"
primitiveValue="Sales Desc">
primitiveValue="Sales Desc"
(changed)="this.editorChangeUpdateGroupSorts($event)">
</igx-property-editor-property-description>
</igx-property-editor-panel>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { ComponentRenderer, PropertyEditorPanelDescriptionModule, LegendDescriptionModule, CategoryChartDescriptionModule } from 'igniteui-angular-core';
import { SalesData } from './SalesData';
import { IgxPropertyEditorPanelComponent, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts';
import { IgxCategoryChartComponent } from 'igniteui-angular-charts';
import { IgxPropertyEditorPropertyDescriptionChangedEventArgs, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts';
import { IgxCategoryChartComponent, MarkerType, MarkerType_$type } from 'igniteui-angular-charts';
import { EnumUtil } from 'igniteui-angular-core';
import { IgxPropertyEditorPanelComponent } from 'igniteui-angular-layouts';

import { defineAllComponents } from 'igniteui-webcomponents';

Expand Down Expand Up @@ -57,5 +59,23 @@ export class AppComponent implements AfterViewInit
{
}

public editorChangeUpdateInitialGroups({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void {

var intialGroupVal = args.newValue.toString();
chart.initialGroups = intialGroupVal;
}

public editorChangeUpdateInitialSummaries({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void {

var intialSummaryVal = args.newValue.toString();
chart.initialSummaries = intialSummaryVal;
}

public editorChangeUpdateGroupSorts({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void {

var groupSortsVal = args.newValue.toString();
chart.groupSorts = groupSortsVal;
}

}