ActionItem
    
            
            in package
            
        
    
    
    
Table of Contents
Properties
- $attributes : array<string|int, mixed>
 - $name : string
 
Methods
- __construct() : mixed
 - ActionItem constructor.
 - alert() : $this
 - Add alert.
 - apiMethod() : $this
 - Add api method.
 - apiParams() : $this
 - Add api params.
 - apiRules() : $this
 - Add api rules.
 - apiUrl() : $this
 - add api url.
 - asDelete() : mixed
 - asDownload() : $this
 - Set page as a download action.
 - asFormDialog() : static
 - asGet() : mixed
 - asPatch() : mixed
 - asPost() : mixed
 - asPut() : mixed
 - confirm() : $this
 - Add Confirm.
 - downloadUrl() : static
 - getName() : string
 - Get action name.
 - link() : $this
 - Put link into item.
 - pageParams() : $this
 - pageUrl() : $this
 - Set page url.
 - placeholder() : $this
 - Set placeholder.
 - toArray() : array<string, mixed>
 - urlParams() : $this
 - Add api params.
 
Properties
$attributes
    protected
        array<string|int, mixed>
    $attributes
     = []
    
        <string,mixed|array>
$name
    protected
        string
    $name
    
    
    
    
Methods
__construct()
ActionItem constructor.
    public
                    __construct(string $name) : mixed
    Parameters
- $name : string
 
alert()
Add alert.
    public
                    alert(array<string|int, mixed> $alert) : $this
    Parameters
- $alert : array<string|int, mixed>
 
Return values
$thisapiMethod()
Add api method.
    public
                    apiMethod(string $apiMethod) : $this
    Parameters
- $apiMethod : string
 
Return values
$thisapiParams()
Add api params.
    public
                    apiParams(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>
 
Return values
$thisapiRules()
Add api rules.
    public
                    apiRules(array<string|int, mixed> $rules) : $this
    Parameters
- $rules : array<string|int, mixed>
 
Return values
$thisapiUrl()
add api url.
    public
                    apiUrl(string $apiUrl) : $this
    Parameters
- $apiUrl : string
 
Return values
$thisasDelete()
    public
                    asDelete() : mixed
    asDownload()
Set page as a download action.
    public
                    asDownload() : $this
    Return values
$thisasFormDialog()
    public
                    asFormDialog(bool $asDialog) : static
    Parameters
- $asDialog : bool
 
Return values
staticasGet()
    public
                    asGet() : mixed
    asPatch()
    public
                    asPatch() : mixed
    asPost()
    public
                    asPost() : mixed
    asPut()
    public
                    asPut() : mixed
    confirm()
Add Confirm.
    public
                    confirm([array<string|int, mixed>|null $confirm = null ]) : $this
    Parameters
- $confirm : array<string|int, mixed>|null = null
 
Return values
$thisdownloadUrl()
    public
                    downloadUrl(string $downloadUrl) : static
    Parameters
- $downloadUrl : string
 
Return values
staticgetName()
Get action name.
    public
                    getName() : string
    Return values
stringlink()
Put link into item.
    public
                    link(string $link) : $this
    Parameters
- $link : string
 
Return values
$thispageParams()
    public
                    pageParams(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>
 
Return values
$thispageUrl()
Set page url.
    public
                    pageUrl(string $pageUrl) : $this
    Parameters
- $pageUrl : string
 
Return values
$thisplaceholder()
Set placeholder.
    public
                    placeholder(string $string) : $this
    Parameters
- $string : string
 
Return values
$thistoArray()
    public
                    toArray() : array<string, mixed>
    Return values
array<string, mixed>urlParams()
Add api params.
    public
                    urlParams(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>