diff --git a/samples/charts/toolbar/custom-tool/index.html b/samples/charts/toolbar/custom-tool/index.html index 6b1523b0b..b592fddab 100644 --- a/samples/charts/toolbar/custom-tool/index.html +++ b/samples/charts/toolbar/custom-tool/index.html @@ -35,6 +35,13 @@ name="CustomIconName" id="CustomIconName"> + +
diff --git a/samples/charts/toolbar/custom-tool/src/index.ts b/samples/charts/toolbar/custom-tool/src/index.ts index 5781777e2..fc671b14f 100644 --- a/samples/charts/toolbar/custom-tool/src/index.ts +++ b/samples/charts/toolbar/custom-tool/src/index.ts @@ -21,6 +21,7 @@ export class Sample { private legend: IgcLegendComponent private toolbar: IgcToolbarComponent private customIconName: IgcToolActionLabelComponent + private customIconName2: IgcToolActionLabelComponent private chart: IgcCategoryChartComponent private _bind: () => void; @@ -28,6 +29,7 @@ export class Sample { var legend = this.legend = document.getElementById('legend') as IgcLegendComponent; var toolbar = this.toolbar = document.getElementById('toolbar') as IgcToolbarComponent; var customIconName = this.customIconName = document.getElementById('CustomIconName') as IgcToolActionLabelComponent; + var customIconName2 = this.customIconName2 = document.getElementById('CustomIconName2') as IgcToolActionLabelComponent; var chart = this.chart = document.getElementById('chart') as IgcCategoryChartComponent; this._bind = () => { @@ -55,6 +57,8 @@ export class Sample { const icon = ''; toolbar.registerIconFromText("CustomCollection", "CustomIcon", icon); + toolbar.registerIconFromDataURL("CustomCollection2", "CustomIcon2", "https://www.svgrepo.com/show/678/calculator.svg"); + } }