Tip
class Tip (View source)
Represents a Tip which can be rendered alongside a form field in the front-end.
See the Tip component in the silverstripe/admin module.
Constants
IMPORTANCE_LEVELS |
These map to levels in the front-end Tip component |
DEFAULT_ICON |
|
DEFAULT_IMPORTANCE_LEVEL |
|
Methods
__construct(string $message, string $importance_level = self::DEFAULT_IMPORTANCE_LEVEL, string $icon = self::DEFAULT_ICON)
No description
array
getTipSchema()
Outputs props to be passed to the front-end Tip component.
string
getImportanceLevel()
No description
setImportanceLevel(string $importance_level)
No description
string
getIcon()
No description
string
getMessage()
No description
setMessage(string $message)
No description
Details
__construct(string $message, string $importance_level = self::DEFAULT_IMPORTANCE_LEVEL, string $icon = self::DEFAULT_ICON)
array
getTipSchema()
Outputs props to be passed to the front-end Tip component.