rhtyd commented on issue #3258:  [WIP DO NOT MERGE] Configure hiding table 
columns through config.js file
URL: https://github.com/apache/cloudstack/pull/3258#issuecomment-480175306
 
 
   Put some after-loaded method/js file that does something looping over 
sections minimizing changes to the listview/widget/library:
   ```
               $.each(cloudStack.sections, function(idx, section) {             
      
                   if (section.listView) {                                      
      
                       section.listView.preFilter = function(args) {            
      
                           const original = section.listView.preFilter(args);   
      
                           return ['name'] + original;                          
                                                                                
           
                       };                                                       
      
                       console.log(Object.keys(section.listView.fields));       
      
                   }                                                            
      
               }); 
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to