Skip to content

Rearrange order

Allows you to rearrange the order of ChildrenTabs in Detail View.

Note

This is about ChildrenTabs, not about Custom Tabs. CustomTabs can be rearranged by just changing theorder of creation.

Given the following ChildrenTabs...

  1. tab1
  2. tab2
  3. tab3
  4. tab4

...the following .sort-function call will rearrange the ChildrenTabs according to the order, given in 1st arguent, which is and array of strings (child-tablenames):

1
2
// file: hooks/TABLENAME-dv.js
AppGiniHelper.DV.getChildrenTabs().sort(["tab3", "tab1", "tab2"])

New Order of ChildrenTabs:

  1. tab3
  2. tab1
  3. tab2
  4. tab4
    (tab4 has not been touched)

See also