Our blazing fast Grid component built with pure JavaScript


Post by henrique »

Hi!

I'm creating a TabPanel but in the documentation of the Tab class, almos all configs are "read only" because in the documentation is written "It is managed by the tab panel is not set directly.", so why the config exists?


Post by henrique »

Another detail, in the sample os the tab documentation exists a property called "Title" and "Icon", but the documentation only has the info about the source and title property! I guess this documentation ir outdated.


Post by henrique »

Just for help, the button config, has a property called "Tab", and there exists another configuration about the tab. Please, update the Tab documentation to the real properties that's can be used in the tab.


Post by khattakdev »

Hi henrique,

You can create a TabPanel by following this documentation page, it has an example in the start.
The TabPanel is the top widget, which then contains Tab and TabBar.

in the sample os the tab documentation exists a property called "Title" and "Icon"

The "icon" is part of the Tab Widget, mentioned in the https://bryntum.com/products/grid/docs/api/Core/widget/Tab#property-icon, which should be written inside the tab.

let tabPanel = new TabPanel({
 items: [
     {
         title: 'Settings',
         // Tab configs
         tab : {
             // Show an icon in the tab
             icon : 'b-fa b-fa-cog'
         },
         items: [
             ...
         ]
     }
 ]
});

Arsalan
Developer Advocate


Post by henrique »


Post by mats »

Looks outdated yes, we'll get it fixed - thanks a lot for reporting! https://github.com/bryntum/support/issues/8391


Post Reply