Skip to content

Conversation

@stefanorosanelli
Copy link
Member

@stefanorosanelli stefanorosanelli commented Feb 18, 2021

Whit this PR you can easily hide a relation or property group in an object view.

With a new empty Form/empty element you can create configurations like this:

'cats' => [
            'view' => [
                'core' => [
                    'petname',
                ],
               'advanced' => [
                     '_element' => 'Form/empty',
               ],
            ],

            'relations' => [
                '_element' => [
                    'has_friends' => 'Form/empty',
                ],
            ],
 ],

In the resulting view:

  • Advanced property group will be hidden
  • Has Friends relation tab will be empty

@codecov
Copy link

codecov bot commented Feb 18, 2021

Codecov Report

Merging #522 (907ecdb) into master (d553579) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #522      +/-   ##
============================================
+ Coverage     91.07%   91.10%   +0.02%     
- Complexity      708      710       +2     
============================================
  Files            44       44              
  Lines          2130     2137       +7     
============================================
+ Hits           1940     1947       +7     
  Misses          190      190              
Impacted Files Coverage Δ Complexity Δ
src/Plugin.php 100.00% <100.00%> (ø) 1.00 <1.00> (ø)
src/View/AppView.php 100.00% <100.00%> (ø) 3.00 <0.00> (ø)
src/View/Helper/LayoutHelper.php 100.00% <100.00%> (ø) 9.00 <2.00> (+2.00)
src/View/Helper/PermsHelper.php 100.00% <100.00%> (ø) 8.00 <8.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f01832a...7fa0670. Read the comment docs.

@stefanorosanelli stefanorosanelli changed the title Feat/hide relations groups Hide relations or property groups Feb 19, 2021
@stefanorosanelli stefanorosanelli marked this pull request as ready for review February 19, 2021 10:49
@didoda didoda merged commit ee1e421 into bedita:master Mar 19, 2021
@didoda didoda deleted the feat/hide-relations-groups branch March 19, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants