Our blazing fast Grid component built with pure JavaScript


Post by henrique »

I upgraded the grid to the latest version and started having problems with the panel.

If you use the collapse setting with the top direction, simply the button on the right side above does not appear, and if you click to close the panel, it gives an error that cannot read properties.

Sample code below:

console.clear();

const panelConfig = {
    appendTo : document.body,
    height   : '20em',
    width    : '40em',
    header   : 'Panel header',
    collapsible: {
       direction: 'top'
    },
    html : `A HTML content`,
};

const panel = new Panel(panelConfig);

Post by dongryphon »

I've opened a ticket - https://github.com/bryntum/support/issues/3958 - we have incorrect docs for the direction config.

It takes "up", "down", "left", or "right" as values (not "top" or "bottom").

So this should work:

    const panel = new Panel({
        appendTo : document.body,
        height   : '20em',
        width    : '40em',
        header   : 'Panel header',
        collapsible: {
           direction: 'up'
        },
        html : `A HTML content`
    });

Sorry for the hassle but much thanks for the perfect test case!

HNY!


Post by henrique »

Thanks! Everything works has expected!


Post Reply