chg: [helper:bootstrap] Added support of ID option
parent
6eb5106153
commit
73c4baac31
|
@ -21,6 +21,7 @@ class BootstrapIcon extends BootstrapGeneric
|
||||||
{
|
{
|
||||||
private $icon = '';
|
private $icon = '';
|
||||||
private $defaultOptions = [
|
private $defaultOptions = [
|
||||||
|
'id' => '',
|
||||||
'class' => [],
|
'class' => [],
|
||||||
'title' => '',
|
'title' => '',
|
||||||
'attrs' => [],
|
'attrs' => [],
|
||||||
|
@ -48,6 +49,7 @@ class BootstrapIcon extends BootstrapGeneric
|
||||||
{
|
{
|
||||||
$html = $this->node('span', array_merge(
|
$html = $this->node('span', array_merge(
|
||||||
[
|
[
|
||||||
|
'id' => $this->options['id'] ?? '',
|
||||||
'class' => array_merge(
|
'class' => array_merge(
|
||||||
$this->options['class'],
|
$this->options['class'],
|
||||||
["fa fa-{$this->icon}"]
|
["fa fa-{$this->icon}"]
|
||||||
|
|
Loading…
Reference in New Issue