t_List_Avatars
Avatars
Properties
codes : stringMedia codes
crop : booleanTrue to crop icons
iconCaptions : stringThe attribute, association path, or a constant specifying icon captions.
icons : stringAssociation list of association paths or constants to the icon properties of the items in the collection
Association list of association paths or constants: (image|data|type|icon|default|lock . <a1> ... <an>|"<const>")
Note that this isn't a list of values. It is simply the association path, or expression, to the icon of the items.
It is called icons (plural) because it retrieves the icon(s) from the collection's item(s).- Example
Configuring data table avatar for Entity.meta
<Table>
<Column ... icons="(image . image)(data . mimeData)(type . mimeType)(icon . icon)(default . "icon:person")(lock . locking)" .../>
...
</Table>
image - The name of the attribute that contains the image (usually of type Obj) from the current instance. The attribute name doesn't need to be called "image", but often is.
data - Obj'mimeData attribute of type binary returning the image data. Always mimeData if the image attribute is of type Obj.
type - Obj'mimeType attribute of type string returning mime type of the image data. Always mimeType if the image attribute is of type Obj.
icon - optional. The name of an attribute of type string returning an icon name if the image is null
default - optional. "icon:person" - A constant expression to fall back on if both image and icon are null
lock - optional. The name of the attribute returning the optimistic locking value. Always locking if the image attribute is of type Obj.
tooltips : stringThe attribute, association path, or a constant specifying tooltips.
Content
Sequence of:
t_List_Avatars_Switch [0..1]
Parents
g_FormView_List - List control - within a tab in a layout
t_FormLayout_List - List control - within a composite in a layout.
Parent topic: reuseable-references
Parent topic: t_FormLayout_List