Premium support for our pure JavaScript UI components


Post by pincherhgz »

we have a widget defined like

     {
        type     : 'button',
        cls      : 'b-rounded',
        id       : 'reload',
        icon     : 'b-fa b-fa-rotate',
        disabled : true
    },

if we try

bryntum.grid.Widget.getById('reload').hidden = false;

the bryntum.grid.Widget.getById('reload') returns undefined. All that did work before


Post by ghulam.ghous »

Hi,

I couldn't find any thing like this in docs. Can you please tell in which version it worked for you? You can use widgetMap https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-widgetMap to get the widget. Something like this will work for you:

bryntum.query('grid').widgetMap.reload.hidden = false

You can also explore the getById on WidgetHelper https://bryntum.com/products/grid/docs/api/Core/helper/WidgetHelper#function-getById-static.

Regards,
Ghous


Post by Animal »

Is that particular component destroyed?


Post by pincherhgz »

no the component is there (see screenshot) and it is visible for sure, and we can locate it if we go for the higher level component and iterate the widget map

in 5.5 it was working and we did not change anything

Attachments
button.png
button.png (138.45 KiB) Viewed 206 times

Post by marcio »

Best regards,
Márcio


Post by Animal »

pincherhgz wrote: Thu Feb 08, 2024 7:26 pm

no the component is there (see screenshot) and it is visible for sure, and we can locate it if we go for the higher level component and iterate the widget map

in 5.5 it was working and we did not change anything

The element my well exist, but if some framework is involved then absolutely anything could be happening. Is there a framework wrapping ths simplicity of Components?


Post by pincherhgz »

.no there is nothing than bryntum.

@Marcio, bryntum.fromSelector('#reload') works fine, thanks


Post Reply