Syntax

	resource($userObject, $image, $label, $tooltip, $cssClass)

Description

Creates a resource object with given user object, image, label, tooltip and CSS class.

Parameters

Name Type Description Mandatory Default
userObject any The subject object that serves as the basis for the resource yes
image Icon/Icon source An image to be displayed for the resource no No image
label String/Internationalized text The displayed description for the label no No label
tooltip String/Internationalized text The tooltip for the resource no No tooltip
cssClass String Name of the CSS classes for the resource no No CSS class

Return value

Type: Resource

Examples

	resource($userObject, "css:far fa-thumbs-up", #("Daumen hoch"@de,"Thumbs up"@en), "Some tooltip")