EasyUI Forum
June 26, 2024, 12:31:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How can I get the combobox object in the pivotgrid?  (Read 3111 times)
officecode
Jr. Member
**
Posts: 69


View Profile Email
« on: January 22, 2019, 09:46:52 PM »

As shown in the figure, how can I get the combobox object in the toolbar? I want to modify its margins and labels.
I have solved it by means of a selector, but I always feel a little troublesome and look forward to a better solution.
Thank you.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2267


View Profile Email
« Reply #1 on: January 23, 2019, 12:12:09 AM »

To modify the styles of the filter bar, please try this:
Code:
<style>
.pg-fbar{
    padding: 4px;
}
</style>

If you want to get the filter component, please extend a method to achieve this.
Code:
<script type="text/javascript">
    $.extend($.fn.pivotgrid.methods, {
        getFilterComponent: function(jq, field){
            return jq.treegrid('getPanel').find('.pg-fbar').find('[comboname="'+field+'"]');
        }
    })
</script>
Logged
officecode
Jr. Member
**
Posts: 69


View Profile Email
« Reply #2 on: January 23, 2019, 02:45:48 AM »

Well, great, thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!