Tab Control Close Button

Answered
0
0

Hi,

I was wondering where the option was in the designer or theme where I can show the close button on all tab headers?

At the moment I have used the theme to color the tab and align the close button, but the tab close button only appears on the focussed tab.

I have seen a few samples apps where the close is always visible on all tabs.

Thanks,

Brayden.

  • You must to post comments
Great Answer
0
0

Hi Brayden

Checking this with the product team, I update you.

The pictures that you see on the case studies for Harris dont use a tab control. This case use a custom theme for show MDI forms and using a main container page with a Form with property isMdiContainer=true

1.- For modify only MDI container to show X in all tabs, you can use this code

Application.Theme.Appearances.tabview.components.page.components.button.states.@default.properties.showClose = true;

2.- For modify MDI container and also any tab control in your app, follow the nexts steps

In the themes designer, you must modify any of the preexisting themes, change the next property and save as the theme with the name you desire.
Application.Theme.Appearances.tabview.components.page.components.button.states.@default.properties.showClose = true

After that, copy the modified theme under the empty folder Thems of your project

Finally, in the Default.json config file, add new entry for your custom theme. For example

"url": "Default.html",
"startup": "MDIExample.Program.Main, MDIExample",
"theme": "MDIClosebutton"

You can see this into the picture. And also I attach the public sample MDIchild, using a modified theme with this settings.

HTH
Regards

  • You must to post comments
0
0

Hi Brayden
Thanks for your suggestion

We will evaluate this enhancement to be implemented in a future release

Regards.

  • Brayden McLachlan
    Hi Paul, I was referencing https://wisej.com/case-studies/harris/ where it looks liked that was a tab control and all tabs have close options. Is that another type of control? Thanks, Brayden.
  • Paul
    • Paul
    • Aug 14, 2021 - 10:14 pm
    Hi Brayden. You are right. Ill comment this with the product team an I will we keep updated you . Regards and best weekend
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.