EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: officecode on January 22, 2019, 09:46:52 PM



Title: How can I get the combobox object in the pivotgrid?
Post by: officecode 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.


Title: Re: How can I get the combobox object in the pivotgrid?
Post by: jarry 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>


Title: Re: How can I get the combobox object in the pivotgrid?
Post by: officecode on January 23, 2019, 02:45:48 AM
Well, great, thanks.