$icon
Icon class
protected
string
$icon
= ''
View helper with Icon
$icon | Icon class | string |
---|---|---|
$iconOnly | Show icon only | bool |
$iconStack | Button text | string |
$stackTop | Move stack icon to top | bool |
$size | Button text | string |
$spinner | Spinner class for icon | string |
setIcon() | Set icon | $this |
setIconOnly() | Set button to display icon only | $this |
setStack() | Set if icon is stacked | $this |
setSize() | Set Icon size | $this |
setStackTop() | Move stack icon to top | $this |
setSpinner() | Set flag icon has spinner | $this |
getIconString() | Return full icon string | string |
Icon class
protected
string
$icon
= ''
Show icon only
protected
bool
$iconOnly
= false
Button text
protected
string
$iconStack
= ''
Move stack icon to top
protected
bool
$stackTop
= false
Button text
protected
string
$size
= ''
Spinner class for icon
protected
string
$spinner
= ''
Set icon
public
setIcon(
$icon :
string
[, $prefix :
string
= 'fa' ]
[, $useFa :
bool
= true ]
)
: $this
Icon CSS classes
Icon prefix
Auto-add FontAwesome Icon classes
Set button to display icon only
public
setIconOnly(
$iconOnly :
string
)
: $this
Set if icon is stacked
public
setStack(
$iconStack :
string
[, $useFa :
bool
= true ]
)
: $this
Auto-add FontAwesome Icon classes
Set Icon size
public
setSize(
$size :
string
[, $useFa :
bool
= true ]
)
: $this
Auto-add FontAwesome Icon classes
Move stack icon to top
public
setStackTop(
$stackTop :
bool
)
: $this
Set flag icon has spinner
public
setSpinner(
$spinner :
string
[, $useFa :
bool
= true ]
)
: $this
Return full icon string
protected
getIconString(
)
: string