Menu

Hide "Open in new window" button on child

0 votes

Is it possible to hide the "Right-Click to open in a new window or tab" button on a child table?
I feel like I've done this in the past but I can't figure it out now...

Right Click menu

in How To by (2.3k points)
edited by
Hello Daniel. Is there a specific reason you want to hide that option from your users?  I am just making sure we are not covering up a problem.
Not a big deal, I just like to keep things as simple as possible for the endusers. In many cases, there's no need to view the child data table without the parent. I could see how an accidental misclick on that button would send some less tech-savvy users here into a panic...

1 Answer

0 votes
 
Best answer

All you need to hide those buttons is a bit of CSS.

div.formMaximize {
    display: none;
}

If you want to apply this CSS to a specific table then you can add a CSS class in the table preferences and then use that CSS class as follows. In the example below we first added the class name 'hideMaximize' to the target table.

.hideMaximize .formMaximize {
    display: none;
}

For instructions on where you can add that CSS see: Addiing custom CSS to dbFront

by (64.3k points)
selected by
Thanks, can this be limited to only specific database connections and/or tables?
I updated the instructions to cover targeting specific tables.
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
 |
Powered by Question2Answer
...