Data Area Tags

A data area is defined using an areas tag with nested data-areas, each with an open { and close } brace. Each data-area includes an id tag to reference a button in the menu-area.

Tag

Example

Status

Notes

areas

areas {

...

}

Required

Defines the outer level block for one or more data or other areas.

data-area

data-area id = "data-area-1" device-type = "all" {

...

}

Required

Defines pages for presenting your data.

Can include id and device-type tags.

A data-area typically has a sections block followed by a pages block.

device-type

data-area id = "data-area-1" device-type = "phone" {

...

}

Optional

Identifies which devices use the data area.

The all value includes viewing on Android, PC, and tablet devices. The phone value only includes viewing only on Android phones. Not including this tag means the data area is available to view on PC and tablet only, which is the default.

Placed after the data-area tag and before the open brace, {.

icon

icon "/divetab/images/Data.png" retina = true

Optional

Identifies the icon to display in the menu button used to access the data area. The retina attribute is a Boolean.

id

data-area id = "data-area-1" {

...

}

Required if not the start area

Identifies the nested data-area so it can be referenced by the menu-area.

Placed after the data-area tag and before the open brace, {.

offline

data-area id = "data1" offline = true {

...

}

Optional

Identifies the data area for offline access. The offline attribute is a Boolean.

pages

pages {

<page-type>
<page-type>
...

}

Optional

Defines pages that can be linked to other pages defined in the data-area block. Options are report, ad hoc, cross, dive, and central pages.

<page-type>

ad-hoc-page {

<page-details>

}

central-page {

<page-details>

}

cross-page {

<page-details>

}

dive-page {

<page-details>

}

overview-page {

<page-details>

}

report-page {

<page-details>

}

Required

Specifies the type of page being defined.

sections

sections {

<page type>
<page type>
...

}

Optional

Defines pages that are available from the Sections popup menu. Options are report, ad hoc, cross, and overview pages.

title

title "Auto List Page"

Optional

Defines the title to display in the menu button used to access the data area.

See also: