tabbar close on tab could be optional?

Is there any way that the close tab button to be optional?

The settings applied to whole tabbar, so all tabs will have or will not have closing button.
There is a small trick - all buttons created before enableTabCloseButton command will not have button, so you can use something similar to the next

tabbar.addTab(… //create buttons which must not have closing button
tabbar.addTab(… //create buttons which must have closing button