Inline fields when they are checkbox

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
balfons
Veteran Member
Posts: 91
Joined: 2018-10-22 15:27

Inline fields when they are checkbox

Post by balfons » 2020-12-22 10:41

Hi!

I'm trying to have 2 checkbox fields inline and inside a custom tab. Here is my code:

new AppGiniFields(["water", "gaz"]).inline("Related to", [6, 6]);

Both fields, water and gaz, are a checkbox and when I put them inline only the second one and the label are shown, not inline but one above the other.

Any ideas? Maybe I've missed something?

Thanks in advance

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

Re: Inline fields when they are checkbox

Post by jsetzer » 2020-12-22 11:51

Hi, I am going to set up a test project and do some research on it. Stay tuned...
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

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

AppGini 24.10 Revision 1579 + all AppGini Helper tools

balfons
Veteran Member
Posts: 91
Joined: 2018-10-22 15:27

Re: Inline fields when they are checkbox

Post by balfons » 2020-12-22 12:06

Thanks Jan!

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

Re: Inline fields when they are checkbox

Post by jsetzer » 2020-12-22 12:24

Question: Is it possible for you to add a non-checkbox field as first field, for example...

Code: Select all

var dv = AppGiniHelper.dv;
var tab = dv.addTab("tabTest", "Test", "cog", ["name","water","gas"]);
dv.getFields(["name", "water", "gas"]).inline("test", [12, 6,6]);
In this code I have put a normal text input field "name" at the first position. This should work fine.

chrome_vnBJHsPVCW.png
chrome_vnBJHsPVCW.png (2.46 KiB) Viewed 1593 times
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

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

AppGini 24.10 Revision 1579 + all AppGini Helper tools

balfons
Veteran Member
Posts: 91
Joined: 2018-10-22 15:27

Re: Inline fields when they are checkbox

Post by balfons » 2020-12-22 14:50

Hi Jan,

I'll see if I can add a text field before checkbo and I will try this solution.

Thanks for the workaround!

Post Reply