enhancement
major
minor
major
minor
You might want to organize a view differently depending on which model type is displayed there. Traditionally, this is done using a tl:TabComponent without a tab bar, where only exactly one tab is visible at a time.
For in-app configuration, there is no template that displays a `tl:TabComponent` without a tab bar. Furthermore, it is difficult to configure the component’s visibility so that only one component is displayed at a time. It would be simpler if the `TabComponent` always displayed only the first visible tab. To achieve this, when changing its displayed tabs, the `TabComponent` must not remember the last selected tab and make it visible again, but must instead select a new tab (the first one currently visible).
Since no tab bar is displayed, there is no space where the in-app configuration commands for the invisible TabComponent can be shown. The context menu for this invisible tab bar would have to be merged with another component. Since this is not currently technically feasible without further effort, such an invisible tab can only be modified retrospectively in the Layout Editor (Administration / Development / Layout Editor).
Improvement
- New layout template: Alternative Views.
- New configuration option ` onChangeSelectFirstTab ` in the `tl:TabComponent`.
Test
com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/layout/TestPolymorphicViews.script.xml