key("Open")->headerText("Backlog"); $column1 = new EJ\Kanban\Column(); $constraint = new EJ\Kanban\Constraint(); $constraint ->max(2); $column1 ->key("InProgress")->headerText("In Progress")->constraints($constraint); $column2 = new EJ\Kanban\Column(); $column2 ->key("Testing")->headerText("Testing"); $column3 = new EJ\Kanban\Column(); $column3 ->key("Close")->headerText("Done"); $cardset = new EJ\Kanban\CardSetting(); $cardset ->colorMapping($colormap); $fields = new EJ\Kanban\Field(); $fields ->content("Summary")->primaryKey("Id"); $columns = array($column,$column1,$column2,$column3); echo $kanban->keyField("Status")->allowTitle(true)->columns($columns)->cardSettings($cardset)->fields($fields)->dataSource($Json)->render(); ?>