Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // header menu items
- this.getMainMenuItems = function getMainMenuItems(params) {
- if (params.column.getId() !== 'actions') {
- // const menuItems = [];
- const menuItems = [
- {
- name: 'Sort ASC',
- action: function() {
- console.log('asc');
- }
- },
- {
- name: 'Sort DESC',
- action: function() {
- console.log('desc');
- }
- },
- ];
- return menuItems;
- }
- return params.defaultItems;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement