Skip to content

Commit ddf2fec

Browse files
authored
Add setFilterPillTitleAsHtml
1 parent b2d36c5 commit ddf2fec

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Views/Filters/Traits/Styling/HandlesFilterPillsAttributes.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ trait HandlesFilterPillsAttributes
2020
*/
2121
protected array $pillResetButtonAttributes = [];
2222

23+
protected bool $pillTitleAsHtml = false;
24+
25+
2326
public function getPillAttributesBag(): ComponentAttributeBag
2427
{
2528
return new ComponentAttributeBag($this->getPillAttributes());
@@ -82,4 +85,17 @@ public function getFilterPillResetButtonAttributesMerged(array $resetFilterButto
8285
$this->getPillResetButtonAttributes()
8386
);
8487
}
88+
89+
public function setFilterPillTitleAsHtml(bool $pillTitleAsHtml): self
90+
{
91+
$this->pillTitleAsHtml = $pillTitleAsHtml;
92+
93+
return $this;
94+
}
95+
96+
public function getFilterPillTitleAsHtml(): bool
97+
{
98+
return $this->pillTitleAsHtml;
99+
}
100+
85101
}

0 commit comments

Comments
 (0)