When using Angular and Kendo Grid, I have encountered an issue where I want to incorporate a custom label alongside the Kendo Grid Column Chooser. The default functionality only displays an icon, leaving me unable to find a way to include a label next to it.
@Component({
selector: 'my-app',
template: `
<kendo-grid [data]="data">
<ng-template kendoGridToolbarTemplate>
// My goal is to add a label such as "Choose Columns"
<kendo-grid-column-chooser></kendo-grid-column-chooser>
</ng-template>
<kendo-grid-column field="Field1"></kendo-grid-column>
<kendo-grid-column field="Field2" [hidden]="true"></kendo-grid-column>
</kendo-grid>
`
})
class AppComponent {
public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
}
I am seeking to include a customized label (e.g., "Choose Columns") next to the Column Chooser button within my Angular application. This will help users better understand its purpose. However, I am facing difficulties in triggering the action when clicking on the label. Can you provide guidance on how to achieve this?
Thank you in advance for any assistance!