Modalshow
extends Component
in package
Table of Contents
- $icon : string
- $id : string|null
- $size : string
- $title : string
- $tooltip : string|null
- __construct() : void
- Create a new Modalshow component instance.
- render() : View|string
- Get the view / contents that represent the component.
Properties
$icon
public
string
$icon
= 'fas fa-external-link-square-alt'
$id
public
string|null
$id
= null
$size
public
string
$size
= 'is-modal-medium'
$title
public
string
$title
= ""
$tooltip
public
string|null
$tooltip
= null
Methods
__construct()
Create a new Modalshow component instance.
public
__construct([string $title = "" ][, string $icon = 'fas fa-external-link-square-alt' ][, string $size = 'is-modal-medium' ][, string|null $tooltip = null ][, string|null $id = null ]) : void
Parameters
- $title : string = ""
-
The modal title (default: "")
- $icon : string = 'fas fa-external-link-square-alt'
-
The icon class for the modal trigger (default: 'fas fa-external-link-square-alt')
- $size : string = 'is-modal-medium'
-
Modal size: 'small', 'medium', or 'large' (default: 'medium')
- $tooltip : string|null = null
-
Optional tooltip text for the modal trigger
- $id : string|null = null
Return values
void —render()
Get the view / contents that represent the component.
public
render() : View|string