Official Content

Declares a container included inside a Stencil as a Slot.

Scope

Generators: .NET, .NET Framework, Android, Angular, Apple, Java
Controls: Flex, Free Style Grid, Group, Responsive Table, Tab, Table, Canvas, Grid, Smart Table

Description

Any container (such as a Table, Flex, Canvas, Tab control, Group, Free Style Grid) included inside a Stencil can be declared as a Slot.

By setting a container as a Slot, you will be able to edit/customize that part of the Stencil in each object where the Stencil is included.

To declare a container as a Slot, set this property to True.

Runtime/Design time

This property applies only at design time.

Samples

Cards typically have a title, a body, an image, and a set of actions. The content of the body will depend on the use of the card. So, you can define the container for the content of the body as a Slot.

The following example shows a Stencil (called StencilCard). It contains a Responsive Table (called Body) and its Is Slot property is set to True.

StencilCard

The Stencil is included in a Web Panel. The Slot will be only initialized and you will be able to customize it. On the other hand, the rest of the Stencil will be read-only in the object where it is included, and it will maintain the dynamism with the Stencil.

Availability

This property is available since GeneXus 17 Upgrade 11.

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant