Skip to Main Content

Item Container

A Form

Steps

Blog über ItemContainer

Finally we can stick buttons to items declaratively

In meinem aktuellen Projekt gab es die Anforderung, um am TextItem selbst eine Schaltfläche zu platzieren. Früher, also vor APEX 22.2 musste man das umständlich im PostText-Item Bereich machen. Hier musste man dann den Html-Code für einen Button einfügen und eine etwaig vorhandene Aktion via DynamicActions einbinden, die dann auf einen entsprechenden Selector gebunden wurde.

Heute, mit der aktuellen APEX Version (22.2) können wir das ganze deklarativ umsetzen. Hierzu platziert man das zu erweiternde Textitem in einen neue Region vom Typ Item Container. Diese Region bietet entsprechende Slots., um am Anfang oder am Ende des Items ein oder mehrere Buttons zu platzieren. Diese werden dann wie üblich im Property Inspector konfiguriert.

In my current project, there was a requirement to place a button on the TextItem itself. Previously, i.e. before APEX 22.2, this had to be done in the PostText-Item area. Here you had to insert the Html-code for a button and include a possibly existing action via DynamicActions, which was then bound to a corresponding selector.

Today, with the current APEX version (22.2) we can implement the entire functionality declaratively. For this purpose, the text item to be extended is placed in a new region of the type Item Container. This region offers slots to place one or more buttons at the beginning or at the end of the item. These are then configured as usual in the Property Inspector.

Great, thanks to the APEX team!