Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Add showMosaicButton annotation option (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
gremo authored and kunicmarko20 committed Jan 22, 2019
1 parent 72002d0 commit 26e06e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -130,6 +130,7 @@ use App\Entity\Category;
* managerType="orm",
* group="Category",
* showInDashboard=true,
* showMosaicButton=true,
* keepOpen=true,
* onTop=true,
* icon="<i class='fa fa-user'></i>",
Expand Down
6 changes: 6 additions & 0 deletions src/Annotation/AdminOptions.php
Expand Up @@ -32,6 +32,11 @@ final class AdminOptions
*/
public $showInDashboard = true;

/**
* @var bool
*/
public $showMosaicButton = true;

/**
* @var bool
*/
Expand Down Expand Up @@ -90,6 +95,7 @@ public function getOptions(): array
'group' => $this->group,
'label' => $this->label,
'show_in_dashboard' => $this->showInDashboard,
'show_mosaic_button' => $this->showMosaicButton,
'keep_open' => $this->keepOpen,
'on_top' => $this->onTop,
'icon' => $this->icon,
Expand Down
Expand Up @@ -94,6 +94,7 @@ public function processData(): array
'manager_type' => 'orm',
'label' => 'Category',
'show_in_dashboard' => true,
'show_mosaic_button' => true,
'keep_open' => false,
'on_top' => false,
],
Expand All @@ -106,6 +107,7 @@ public function processData(): array
'manager_type' => 'orm',
'label' => 'This is a Label',
'show_in_dashboard' => true,
'show_mosaic_button' => true,
'keep_open' => false,
'on_top' => false,
],
Expand All @@ -118,6 +120,7 @@ public function processData(): array
'manager_type' => 'orm',
'label' => 'Disable Autowire Entity',
'show_in_dashboard' => true,
'show_mosaic_button' => true,
'keep_open' => false,
'on_top' => false,
],
Expand Down

0 comments on commit 26e06e7

Please sign in to comment.