Erscheinungsbild
InfoLabel
Farbcodiertes Label zur Hervorhebung kurzer Status- oder Kategorie-Informationen. Die Farbe wird über ein Farbschema (colorScheme) gewählt.
Designer-Attribute
| Attribut | Beschreibung | Default |
|---|---|---|
controlId | Eindeutige ID | automatisch generiert |
text | Anzeigetext | controlId |
colorScheme | Farbschema-Nummer (1–10) | 1 |
icon | SAP-Icon-URL (statt Text) | – |
renderMode | Darstellungsmodus: Loose, Narrow | Loose |
visible | Sichtbar | true |
fontSize | Schriftgröße (CSS-Wert) | – |
color | Vordergrundfarbe (Hex) | – |
backgroundColor | Hintergrundfarbe (Hex) | – |
ABAP-API
Zugriff aus der gebundenen Klasse über den generischen Getter me->get_control( '<controlId>' ) (liefert eine /mobbuild/cl_control-Referenz). Properties werden über das geerbte Property-Interface gesetzt (siehe Control):
abap
DATA(lo_label) = me->get_control( 'infoStatus' ).
lo_label->set_property_value( iv_key = 'text' iv_value = 'Neu' ).
lo_label->set_property_value( iv_key = 'colorScheme' iv_value = '3' ).Geerbte Methoden: siehe Control.
Nächste Schritte
- GenericTag – kompaktes Status-Tag
- ObjectStatus – Status mit Icon und Beschriftung
- Label – einfache Beschriftung