The info widget is a versatile labelled widget that can be used to output text. It supports both binding to a unit variable or function and displaying of lang file values directly.
The title is specified as a key to a lang file entry and is required. A tooltip can also be specified as a key to a lang file entry but is optional.Visibility bindingsare also supported.
SystemAdmin currentSystemAdminUser;
void init() {
currentSystemAdminUser = SystemAdmin:user();
.
.
}
// Return the mobile number of the current System Admin user
string getSystemAdminMobileNumber() {
return currentSystemAdminUser.mobileNumber;
}
// Return the email address of the current System Admin user
string getSystemAdminEmailAddress() {
return currentSystemAdminUser.emailAddress;
}
en.lang file entries
info.email_address = E-mail address:
info.mobile_number = Mobile number:
Markdown
The info widget can be allowed to render markdown using the optional "allowMarkdown" attribute. Markdown can be used to create hyperlinks or to otherwise style the text in the info widget.
Add Comment