jQWidgets Forums

jQuery UI Widgets Forums Grid PivotGrid Designer

This topic contains 3 replies, has 2 voices, and was last updated by  Stanislav 7 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • PivotGrid Designer #99781

    BennerBenner
    Participant

    Hi,

    On JQWidgets v5.6;

    I’m having difficulty to apply theme on the PivotGrid Designer,
    for the PivotGrid this is not an issue it worked perfectly by adding theme: ‘darkblue’ to the jqxPivotGrid parameters.
    But adding the same to jqxPivotDesigner doesn’t work, still stuck on the base theme.

    if i got on your example page:
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpivotgrid/pivotgrid_designer.htm?darkblue

    i see that you successful apply themes to the designer, perhaps if i look at the source of this page,
    there is no theme parameters applied to the objects, i guess it’s due to your dynamic way to change theme on the pages.

    Could please help me by showing me a code example with theme applied to the designer?

    Thank you in advance,
    Benner

    PivotGrid Designer #99797

    Stanislav
    Participant

    Hello BennerBenner,

    Here is an example: Link
    You need to declarate the style that you are going to use.

    In the HTML file you need to add this:

        
    <link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css">
    <link rel="stylesheet" href="jqwidgets/styles/jqx.darkblue.css" type="text/css">
    

    The jqx.base.css should be set by default, you need to add the other themes you want to use in your project.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    PivotGrid Designer #99806

    BennerBenner
    Participant

    Hi Stanislav,

    I know about declaring themes,
    i’m actually loading base and darkblue.
    as i mentioned, themes works in all the JQWidgets objects i’m using, perhaps
    PivotGrid theme works, but PivotDesigner won’t. Like in the link you provided me, the designer has no theme applied on it.

                $('#divPivotGrid').jqxPivotGrid(
                {
                    theme: 'darkblue',
                    source: pivotDataSource,
                    treeStyleRows: false,
                    autoResize: false,
                    multipleSelectionEnabled: true
                });
                $('#divPivotGridDesigner').jqxPivotDesigner(
                {
                   theme: 'darkblue', <<---- Is theme parameters is needed like this? 
                    type: 'pivotGrid',
                    target: pivotGridInstance
                }

    The “theme” parameters in PivotDesigner doest seems to exists, i can’t even see it in the API details of it.

    Thanks

    PivotGrid Designer #99832

    Stanislav
    Participant

    Hello BennerBenner,

    Unfortunately, you can’t set a theme to the Designer.
    You will have to manually select the classes of the pivotDesigner and add style to them.
    The ‘theme‘ works only for the PivotGrid.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.