Is it possible to insert custom text between Inline Fields?
.inline() function (
https://www.appgini.de/docs/Javascript- ... nline.html) does
not provide any parameters for inserting custom text/html in between input-controls.
You may consider AppGiniHelper Multi Column Layout (
https://www.appgini.de/docs/Javascript- ... ayout.html):
Code: Select all
AppGiniHelper.dv.createLayout([6, 6])
.add(1, ["fieldname_1", "fieldname_2"])
.add(2, ["fieldname_3", "fieldname_4"]);
This will create a row of two columns, 50% width, each (6/12 = 50%). Column 1 will contain fields
fieldname_1 and
fieldname_2. Column 2 will contain fields
fieldname_3 and
fieldname_4.
If you want just one row and one field per column:
Code: Select all
AppGiniHelper.dv.createLayout([6, 6])
.add(1, ["fieldname_1"])
.add(2, ["fieldname_2"]);
If you need more than two columns, just change the array [6,6] to something different, for example [6,4,2]. Widths should sum up to 12 due to Bootstrap's 12-column-grid-system.
---
You may then use the
label('...') function for re-labeling your field caption to 'x', for example
Code: Select all
AppGiniHelper.dv.getField("fieldname_2").label("x");
Label function:
https://www.appgini.de/docs/Javascript- ... ml?h=label
I know this can be done better using bootstrap's input-groups, but for now this is the only built-in, low-code option.
As @saymaad already mentioned, you can always use jQuery to customize every field individually.