Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - iokevins

Pages: [1]
1
Help for ParamQuery Grid (free version) / jQuery UI Seems Abandoned
« on: November 14, 2020, 06:29:34 am »
Hello sir,

With respect, PQGrid depends on the jQuery UI project, which now seems defunct (since 2016; jQuery itself seems still active).

How might I continue to use PQGrid without loading jQuery UI JavaScript dependency?

Again, thank you very much for providing this software.

Kevin

2
Sharing a fix for toolbar button CSS padding for PQGrid 2.4.1 with current stable releases of jQuery 3.5.1 (released 2020-05-04) and jQuery UI 1.12.1 (released 2016-09-14).

Here is working JSFiddle example code:
https://jsfiddle.net/iokevins/3Loev80n/85/

Here is what it looks like without the fix, with toolbar button losing all padding:
https://jsfiddle.net/iokevins/q2bzk85e/1/

The fix is to add a CSS style to the button declaration:
Code: [Select]
        var obj = {
          toolbar: {
            items: [{
              type: "button",
              label: 'Save Changes',
              icon: 'ui-icon-disk',
              style: "padding: 0.4em 1.0em 0.4em 0.4em"
            }]
          }
        };

It seems the upgrade from 1.11.4 to 1.12.0 reduces the default padding, from 0.4em, to 0, possibly per this changeset:
https://github.com/jquery/jquery-ui/commit/1f6ea8b78ac859bfecbdcdd092c2df3e2eec90ed (via the 1.12.0 release notes)

Hope this helps someone else.

Pages: [1]