Hi
I want to load Grid toolbar which is custom. I am doing this through service.
I have one variable which have value
this.gridStepActions=
[{ text: 'Delete', tooltipText: 'Cancel', prefixIcon: 'close_black_Icon', id: '421', align: 'Left' },{ text: 'Edit', tooltipText: 'Edit', prefixIcon: 'Edit_Icon', id: '422', align: 'Left' },{ text: 'Review', tooltipText: 'Review', prefixIcon: 'Review_Icon', id: '430', align: 'Left' },{ text: 'Next', tooltipText: 'Submit', prefixIcon: 'drag_Icon', id: '76', align: 'Left' },{ text: 'Withdraw', tooltipText: 'Withdraw1', prefixIcon: 'withdraw_Icon', id: '1773', align: 'Left' }]
when I am assiging
this.toolbar=this.gridStepActions(not working)
and when assigning same value directly(see below) then it works :-
this.toolbar=[{ text: 'Delete', tooltipText: 'Cancel', prefixIcon: 'close_black_Icon', id: '421', align: 'Left' },{ text: 'Edit', tooltipText: 'Edit', prefixIcon: 'Edit_Icon', id: '422', align: 'Left' },{ text: 'Review', tooltipText: 'Review', prefixIcon: 'Review_Icon', id: '430', align: 'Left' },{ text: 'Next', tooltipText: 'Submit', prefixIcon: 'drag_Icon', id: '76', align: 'Left' },{ text: 'Withdraw', tooltipText: 'Withdraw1', prefixIcon: 'withdraw_Icon', id: '1773', align: 'Left' }]
Kindly suggest because my toolbar value change on every tab click.