Our blazing fast Grid component built with pure JavaScript


Post by Stormseeker »

This might be a bug with just the button widget itself but when the value I'm binding to is the numeric value of zero, a class doesn't get applied (.b-text it seems). When the value !== 0 it does get applied. This makes the margin/spacing between the icon and text awkward since it changes based on the value.
2020-02-17_2041.png
2020-02-17_2041.png (2.83 KiB) Viewed 2855 times

Post by sergey.maltsev »

Hi!

Thank you for the report.
I've created Issue to get it fixed.
https://github.com/bryntum/support/issues/305

You could use this workaround while fix is not released.
Register your button widget class which extends Button and converts text value to string.
class MyButton extends Button {
    set text(text) {
        super.text = text != null && text.toString();
    }
}

BryntumWidgetAdapterRegister.register('mybutton', MyButton);
Then use it as your widget.
widgets : [{
    type     : 'mybutton',
}]
Also you could preprocess data on store before it is applied to cells.

Post by Stormseeker »

Perfect! I wasn't sure how to do overrides/custom widgets in the framework yet. This should help a lot. I did a workaround for this particular issue by overriding the css but this should help if I run into anything more nefarious.

Thanks!

Post by peta41 »

your printer can print with too many designs . you have to put some meaningful input to get this. but still your printer needs to connect with wi fi connection. so do https://errorcode0x.com/linksys-e1200-router-setup-guide/ you will get high speed data to run the printer. if printer show you any error then rest it and continue.

Post Reply