From f0a95f20e7a4b5673d0866a78542388b1de275c8 Mon Sep 17 00:00:00 2001 From: Tushar Nain Date: Fri, 3 Oct 2025 03:23:12 +0530 Subject: [PATCH] Add ->style() method to Column for inline CSS attribute in Column --- src/Html/Column.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Html/Column.php b/src/Html/Column.php index 34933d5..724e3f7 100644 --- a/src/Html/Column.php +++ b/src/Html/Column.php @@ -88,6 +88,18 @@ public function title(string $value): static return $this; } + /** + * Set column style. + * + * @return $this + */ + public function style(string $css): static + { + $this->attributes['style'] = $css; + + return $this; + } + /** * Create a computed column that is not searchable/orderable. */