Insert Elements

new Since 2019/10

You can now insert certain elements like headlines, paragraphs or alerts before or after any field or above or below the row.

Example

new AppGiniField("birth_date")
  .insertAbove()
    .h1("Heading 1", "page-header")

Position before/after or above/below

There are four diffent places:

  • .insertAbove() inserts the new element above the row,
  • .insertBelow() below the row
  • .insertBefore() inserts the new element above the input
  • .insertAfter() below the input
var field = new AppGiniField("weight");

field.insertAbove().h1("Heading 1");
field.insertBefore().h1("Heading 1");
field.insertAfter().h1("Heading 1");
field.insertBelow().h1("Heading 1");

Insert Heading

Insert a heading (h1-h5) next to a field in Detail View

Read more ...

Insert Paragraph

Insert a paragraph (p) next to a field in Detail View

Read more ...

Insert Alert

Insert an alert box next to a field in Detail View

Read more ...

Do you like it?