Bugfix
(User-visible)
Instead of a ButtonComponent for a specific component, you can activate a buttonbar in TL7 via configuration. This is usually used in dialogs. However, if the dialog consists of more than one component, each of these now registers a close button in the surrounding button bar.
Implementation
The dialog close handlers of layout components are removed. A dialog must have a unique close handler. This is configured in the dialog info (in the absence of an explicit dialog component).
Code migration
- In old TL-6 layout configurations, it may be necessary in rare cases to configure closeHandlerName="closeModalDialog" on a dialog in order to get a "Close" button in the button line. In template-based TL-7 layouts, no changes should be necessary.
Test
In tl-demo: Add a dialog somewhere in design mode. Insert a "Layout" in it, insert at least 2 components and activate the "Show button bar" button.