FilamentF
Filament5mo ago
4 replies
CT

Htmlable label causes "Alpine Expression Error: Invalid or unexpected token"

        TextColumn::macro('abbr', function (string $abbr) {
            $label = $this->getLabel();

            $html = "<abbr class=\"underline decoration-dotted cursor-help\">{$label}</abbr>";

            return $this
                ->label(new HtmlString($html))
                ->extraHeaderAttributes([
                    'x-tooltip.raw' => $abbr,
            ]);
        });

Everything displays fine and it works fine, but I keep getting the attached error in the console. I've tried every way I can think of to escape the quotes and I keep getting this error. Is this a Filament bug or am I doing something wrong? Thanks
image.png
Was this page helpful?