CFIButton
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- CFI constructor.
- align() : CFIButton
- Set button align
- apiUrl() : CFIButton
- Assign url to call an external API without avoiding the form sending
- color() : CFIButton
- Set button color
- formUrl() : CFIButton
- Assign url to call an external API without avoiding the form sending
- onclick() : CFIButton
- Set button align
- title() : CFIButton
- Set a value for the field
- type() : CFIButton
- Type of Button
- url() : CFIButton
- Assign url and method for an API call
Properties
$button
private
mixed
$button
$cfi
private
mixed
$cfi
Methods
__construct()
CFI constructor.
public
__construct(CFI &$cfi, mixed $button) : mixed
Parameters
- $cfi : CFI
- $button : mixed
align()
Set button align
public
align( $align) : CFIButton
Parameters
Return values
CFIButton —$this
apiUrl()
Assign url to call an external API without avoiding the form sending
public
apiUrl( $url[, string $method = 'GET' ]) : CFIButton
Parameters
Return values
CFIButton —$this
color()
Set button color
public
color(mixed $color) : CFIButton
Parameters
- $color : mixed
Return values
CFIButton —$this
formUrl()
Assign url to call an external API without avoiding the form sending
public
formUrl( $url[, string $method = 'GET' ]) : CFIButton
Parameters
Return values
CFIButton —$this
onclick()
Set button align
public
onclick(mixed $js) : CFIButton
Parameters
- $js : mixed
Return values
CFIButton —$this
title()
Set a value for the field
public
title(mixed $title) : CFIButton
Parameters
- $title : mixed
Return values
CFIButton —$this
type()
Type of Button
public
type(string $type) : CFIButton
Parameters
- $type : string
-
Type of button: form, api
Return values
CFIButton —$this
url()
Assign url and method for an API call
public
url( $url[, string $method = 'GET' ]) : CFIButton
Parameters
Return values
CFIButton —$this