Hi team
Concern refernence link: https://stackblitz.com/edit/angular-rnjljp?file=app.component.ts
Here I want to give custom click event to toolbar items. But getting following error when click:
ERROR TypeError: eventObj.next is not a function
at ToolbarComponent.push.HJ9Y.ComponentBase.trigger (component-base.js:308)
at ToolbarComponent.clickHandler (ej2-navigations.es2015.js:3696)
at ZoneDelegate.invokeTask (zone-evergreen.js:399)
at Object.onInvokeTask (core.js:28578)
at ZoneDelegate.invokeTask (zone-evergreen.js:398)
at Zone.runTask (zone-evergreen.js:167)
at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:480)
at invokeTask (zone-evergreen.js:1621)
at HTMLElement.globalZoneAwareCallback (zone-evergreen.js:1647)
Please check and respond ASAP
Thanks
|
<ejs-toolbar>
<e-items> <e-item text='icn-back' align='Left' (click)='iconClick($event)'></e-item> <e-item text='Edit Approval Role' align='Left'></e-item> </e-items> </ejs-toolbar> |
|
public iconClick(e: ClickEventArgs) {
alert(e); } |
HI team,
I have some requirement due to which I need to give detail in json format.
Can you suggest me what wrong in my implementation.
Thanks Team
HI Team
Any update on this issue?
Thanks
HI Team
is there any update on this ticket?
Thanks
HI team,
Is there any update regarding my issue?
Thanks
Ankit
HI Satheesh Kumar B ,
That is not an option for us. In documentation syncfusion have option to add items in json format.
We only want to use this option. Please help us use this option.
Thanks
Any updates regarding this issue ?
|
<div class="control-section e-tbar-section">
<div class="e-sample-resize-container"> <!-- Render the Toolbar Component --> <ejs-toolbar> <e-items> <e-item *ngFor="let m of toolbarItems" [text]="m.text" [align]="m.align" (click)="m.click($event)" ></e-item> </e-items> </ejs-toolbar> </div> </div> |
HI Team
Can you explain what is role of "items" property in ejs-toolbar in angular platform.
And what type of data we can send using "items" property. And how to use click property which has been described here:https://ej2.syncfusion.com/angular/documentation/api/toolbar/itemModel/.
And Please create example using "items" property.
Please check the documentation for reference
https://ej2.syncfusion.com/angular/documentation/api/toolbar/#items
Thanks
|
<div class="control-section e-tbar-section">
<div class="e-sample-resize-container">
<!-- Render the Toolbar Component -->
<ejs-toolbar [items]="toolbarItems" (clicked)="toolbarClicked($event)">
</ejs-toolbar>
</div> </div> |
|
public toolbarClicked(e: ClickEventArgs) {
if (e.item.id == 'Icon Back') {
alert('Icon Back Clicked');
} else if (e.item.id == 'Edit Approval Role') {
alert('Edit Approval Role Clicked');
}
} public toolbarItems = [
{
text: 'icn-back',
id: 'Icon Back',
align: 'Left',
},
{
text: 'Edit Approval Role',
id: 'Edit Approval Role',
align: 'Left',
}, ]; |