add item to the dropdown menu

This commit is contained in:
2026-07-07 13:25:02 -03:00
parent c0464ddd95
commit 2cb5df8e1c
3 changed files with 69 additions and 4 deletions

View File

@@ -8,9 +8,14 @@ class Plugin extends Base
{
public function initialize()
{
// Add a "Move all tasks to another column" entry to the board column
// header dropdown. The hook passes the current $column and $swimlane.
// Render the "Move tasks in bulk" entry. The only column hook sits outside the
// native menu <ul>, so column_dropdown.php renders it hidden and relocate.js
// moves it into the menu (passes the current $column and $swimlane).
$this->template->hook->attach('template:board:column:dropdown', 'bulkMoveTasks:board/column_dropdown');
$this->hook->on('template:layout:js', array(
'template' => 'plugins/BulkMoveTasks/Asset/js/relocate.js',
));
}
public function getPluginName()