Skip to content

Commit c84ddcd

Browse files
committed
feat: column from title
1 parent 389bbdf commit c84ddcd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Html/Options/Plugins/ColumnControl.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,15 @@ public function columnControlSpacer(int|string $target = 1): static
8686

8787
return $this;
8888
}
89+
90+
public function columnControlTitle(null|string|array $title = null, int|string $target = 1): static
91+
{
92+
if (is_array($title)) {
93+
$this->addColumnControl($target, [['extend' => 'title', ...$title]]);
94+
} else {
95+
$this->addColumnControl($target, [['extend' => 'title', 'text' => $title]]);
96+
}
97+
98+
return $this;
99+
}
89100
}

0 commit comments

Comments
 (0)