1. Go to this page and download the library: Download svenk/kanban-operation library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
svenk / kanban-operation example snippets
use Svenk\KanbanOperation\KanbanOperation;
class YourCrudController extends CrudController
{
use KanbanOperation;
// ...
}
protected function setupKanbanOperation()
{
CRUD::set('kanban.label_field', 'name'); //The field to display in the kanban card
CRUD::set('kanban.column_field', 'status'); //The field to use as the column
CRUD::setOperationSetting('columns', [
'pending' => [
'label' => 'Pending',
'flow' => ['in_progress', 'backlog'], //The columns that can be moved to
],
'in_progress' => [
'label' => 'In Progress',
'flow' => ['done', 'pending'],
],
'done' => [
'label' => 'Done',
'flow' => null, //Can be moved to any column
],
]);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.