Tiles

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Tiles

Post by kanklovitch » 2026-04-07 02:41

Hello Jan
A few years ago, when I did my first business application, I was able to create layered tiles like these to organize my pages. (I am not sure what these are called)

I remember at the time I surprised myself that I was able to do it but now that I am working on my second application and I have totally forgotten how I did it.

I can't seem to find the documentation on your website. Can you please point me in the right direction.

Thanks very much
Attachments
Tiles.jpg
Tiles.jpg (156.18 KiB) Viewed 12842 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Tiles

Post by jsetzer » 2026-04-07 03:32

Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-08 17:28

Hello Jan
I guess these are called folders not tiles. I have the folders working the way I want them and also the inline capability is awesome.
Your Appgini Helper makes it so much easier to organize a long page.

The only question I have now is, is it possible to display radio buttons inline like fields? Of course it is not a major issue but it would be nice.

Thanks very much for your help Jan, with AppGini and AppGini Helper, I can appear to be a programmer without the faintest idea about programming.
Attachments
Radio Buttons.jpg
Radio Buttons.jpg (23.36 KiB) Viewed 12804 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Tiles

Post by jsetzer » 2026-04-08 17:47

Thanks for you kind words!

We call them Custom Tabs in DetailView.

For customizable inline radiobuttons please use the forum's search function. If I remember right there were multiple forum posts about exactly this.

Regards,
Jan
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-09 18:03

Hi Jan
I hate to bother you for an issue that is optional, but a search for inline radio buttons isn't bringing up any results for me.

I can change it in the dml file with "$combo_code->RadiosPerLine = 3;" but of course it gets overwritten when I make a change and update.

To be clear, are you saying Appgini Helper doesn't do it, but there are other solutions available with hooks?

Best regards
Ken


peebee
AppGini Super Hero
AppGini Super Hero
Posts:367
Joined: 2013-03-21 04:37

Re: Tiles

Post by peebee » 2026-04-10 06:20

Try this one: https://forums.appgini.com/phpbb/viewto ... f=8&t=4577

It actually works a treat and with a little additional CSS tweaking you can make the buttons look like they belong in 2026. No core edits - apply to hooks/footer-extras.php

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-10 21:31

Thanks peebee
That code is interesting in how it displays the radio options but mine display vertically not horizontally on one line.

I can't find a simple easy solution to make them output on one line. Perhaps there isn't an easy way, I have only a vague idea when it comes to tweaking code.

Thanks very much Super Hero

Ken

peebee
AppGini Super Hero
AppGini Super Hero
Posts:367
Joined: 2013-03-21 04:37

Re: Tiles

Post by peebee » 2026-04-11 04:02

Hi @kanklovitch, perhaps it's time to try a little AI to make your life easier.

Question to Claude: "In Appgini, how can I make radio buttons display horizontally rather than vertical, using hooks or javascript, without editing core files?"

Claude's response:
Here are the best approaches to make AppGini radio buttons display horizontally, all without touching core files:

Method 1: hooks/tablename-dv.js — jQuery (Simplest)
Add this to your hooks/tablename-dv.js file. It removes the <br> tags AppGini inserts between radio buttons and adds spacing between items:
Appgini

javascript

Code: Select all

$j(function() {
    // Remove line breaks between radio buttons
    $j('[type="radio"]').parent().find('br').remove();

    // Add spacing between each radio + label pair
    $j('[type=radio]').next('label').css('margin-right', '15px');
});
To target only a specific field (so you don't affect all radio groups on the page):

javascript

Code: Select all

$j(function() {
    // Replace 'your_field_name' with your actual field name
    $j('[name="your_field_name"]').parent().find('br').remove();
    $j('[name="your_field_name"]').next('label').css('margin-right', '15px');
});
Method 2: hooks/tablename-dv.js — CSS Button Style
If you want the options to look like toggle buttons rather than plain radio buttons, you can use CSS to hide the radio inputs and style the labels instead:

javascript

Code: Select all

$j(function() {
    $j('[type="radio"]').parent().find('br').remove();
});
Then add this to your hooks/ CSS or inline in the JS:

Code: Select all

css
input[type=radio] {
    display: none;
}
input[type=radio] + label {
    display: inline-block;
    margin: 2px;
    padding: 4px 12px;
    cursor: pointer;
    background: linear-gradient(to bottom, #fff, #e6e6e6);
    border: 1px solid #ccc;
    border-radius: 3px;
}
input[type=radio]:checked + label {
    background: #5cb85c;
    color: #fff;
}
Method 3: hooks/tablename.php — Inject via $header
You can also inject CSS and JS through the hooks PHP file using the $header variable in the detailview case:

php

Code: Select all

case 'detailview':
    $header = '<%%HEADER%%><style>
        /* Make all radio groups horizontal */
        input[type="radio"] ~ br { display: none; }
        label[for*="radio"] { margin-right: 15px; }
    </style>';
    return $header;
The key insight is that AppGini renders radio buttons with <br> tags between them by default — removing those <br> tags via jQuery is the cleanest hook-safe approach.

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-11 12:57

Hi peebee
That is incredible. I guess I need to close my eyes and jump in. I will read through these and see what I can learn.

You are another amazing Super Hero peebee, thanks very much.

I will let you know what happens.

Ken

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-11 13:13

Wow, perfect my good man, woman, child, person!

I will be happy forever now.
Attachments
Radio Buttons.jpg
Radio Buttons.jpg (57.11 KiB) Viewed 12704 times

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-13 18:53

Hello Jan
I finished my application and showed it to my co-workers. They all loved it, except they had one request. Is it possible to make the outline around folders bolder like this? Thanks again for everything Jan and to all the Super Hero's that make it possible for me to create my own database application to manage my business.

Ken
Attachments
Folders.jpg
Folders.jpg (53.22 KiB) Viewed 12663 times

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-13 20:20

I took Peebees ' advice and asked AI and tried these two code snippets.
Attachments
Code2.jpg
Code2.jpg (155.9 KiB) Viewed 12658 times
Code 1.jpg
Code 1.jpg (86.49 KiB) Viewed 12658 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Tiles

Post by jsetzer » 2026-04-14 05:04

Well, that probably wasn't so successful with AI...

Let me, as a human, try:

Code: Select all

<style>
    #appginihelper-detailview-tabs {
        --border-color: purple;
        --border-width: 2px;
    }

    li.appginihelper-detailview-tab-caption.active a[role="tab"] {
        border: var(--border-width) solid var(--border-color);
        border-bottom: none;
        margin-bottom: -10px;
    }

    #appginihelper-detailview-tabs-captions {
        border-bottom: var(--border-width) solid var(--border-color);
    }

    #appginihelper-detailview-tabs-panels {
        border: var(--border-width) solid var(--border-color);
        border-top: none !important;
    }
</style>
You can easily change --border-color and --border-width.

Known Issue
If you choose a border-width of more than 1px, then, unfortunately, a small 1px bottom-border will remain in active tab caption.

Output
chrome_55qmuFcvi4.png
chrome_55qmuFcvi4.png (8.8 KiB) Viewed 12643 times
If you wanted to remove the remaining 1px border, you would have to convert the standard HTML for Bootstrap tabs. In my opinion, CSS is not enough for this and it would take me too much time to completely rewrite bootstrap tabs for this one specific UI-wish.

I am going to post an alternative CSS in a minute which also has a known issue. So you can decide what your users like more. Stay tuned...
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Tiles

Post by jsetzer » 2026-04-14 05:11

This is the alternative:
chrome_1dVRT1kWZg.png
chrome_1dVRT1kWZg.png (10.19 KiB) Viewed 12643 times

Known Issue
There is no top-border

Code

Code: Select all

<style>
    #appginihelper-detailview-tabs {
        --border-color: purple;
        --border-width: 2px;
    }

    li.appginihelper-detailview-tab-caption.active a[role="tab"] {
        border: var(--border-width) solid var(--border-color);
        border-bottom: none;
    }

    #appginihelper-detailview-tabs-captions {
        border-bottom: none;
    }

    #appginihelper-detailview-tabs-panels {
        border: var(--border-width) solid var(--border-color);
        border-top: none;
    }
</style>
Personal annotation: My experience has been that you can tell users who "need" such small things (like on pixel-level) that such a small change requires at least 1 hour of effort (for research, program, tryout, ask others, retry, retry, ..., rollout) and therefore costs price X. Customers often no longer "need" this if they have to pay for. Just my experience.


I have a small request
if you need more help on styling elements, on HTML, CSS or Javascript, please ask your question in another sub-forum because then it has nothing to do with AppGini Helper Library and may confuse others, thanks.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Tiles

Post by jsetzer » 2026-04-14 05:34

One last idea:
If you just "need" better visibility, what about changing the border-color from light-grey to black, only, and keep the standard 1px border width?

Output
chrome_21Pga9TM2l.png
chrome_21Pga9TM2l.png (7.02 KiB) Viewed 12639 times

Code

Code: Select all

<style>
    #appginihelper-detailview-tabs {
        --border-color: black;
    }

    #appginihelper-detailview-tabs>ul {
        border-color: var(--border-color);
    }

    #appginihelper-detailview-tabs>ul>li.active>a,
    #appginihelper-detailview-tabs>ul>li.active>a:hover,
    #appginihelper-detailview-tabs>ul>li.active>a:focus {
        border-color: var(--border-color);
        border-bottom-color: transparent;
    }

    #appginihelper-detailview-tabs-panels {
        border-color: var(--border-color);
    }
</style>
Buy me a coffee: https://www.paypal.me/cash4code
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-15 01:03

Hello Super Hero
I just got back to my office Jan, I haven't tried any suggestions, but here is my most important question ever on this incredible forum. My burning question is this. Is there any way on this forum that we can send a tip to someone like you or all the other Super Heroes for providing suggestions and solutions, either big or small, that make a big difference to our applications? I don't expect anything for free, and I am nowhere near capable of providing suggestions or solutions for someone else's problems, as so many do on this forum. I always have a sense of guilt that I can't help others. To be fair to everyone, the only way I know is to pay for the help I get.

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-15 01:15

Wow the solution with the black like is perfect Jan. I am sure that my co-workers will love it. Please understand I am busy, half blind and not that smart - I just saw the "Buy me a coffee". I will definitely do that!!!! Thankyou.

kanklovitch
Veteran Member
Posts:187
Joined: 2019-02-03 17:26

Re: Tiles

Post by kanklovitch » 2026-04-15 01:19

This might seem like a small thing, to some but to me it is a big thing Jan. Thankyou (x10)
Attachments
Black Lines.jpg
Black Lines.jpg (74.22 KiB) Viewed 12616 times

Post Reply