You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is possible to dynamically change some props on w2ui.grid.buttons much like this?
For example:
w2ui.grid.buttons['reload']['tooltip'] = 'Reload the table and reset all filters'
This statement doesn't take into effect and changes was applied in the grid object correctly.
// change props on grid w2ui 2.0
w2ui.grid.buttons['reload']['tooltip'] = 'Reload the table and reset all filters'
// check changes
console.log('W2ui buttons reload', w2ui.grid.buttons.reload)
W2ui buttons reload
{type: 'button', id: 'w2ui-reload', icon: 'w2ui-icon-reload', tooltip: 'Reload the table and reset all filters'}
icon:"w2ui-icon-reload"
id:"w2ui-reload"
tooltip:"Reload the table and reset all filters"
type:"button"
// but button "Reload" tooltip has still old value ''Reload data in the list''
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is possible to dynamically change some props on w2ui.grid.buttons much like this?
For example:
w2ui.grid.buttons['reload']['tooltip'] = 'Reload the table and reset all filters'
This statement doesn't take into effect and changes was applied in the grid object correctly.
Beta Was this translation helpful? Give feedback.
All reactions