Settings Page Reference

Table of Contents


Introduction

There Settings page can be composed of customizable cards of content. There are two categories of cards supplied by the system: standard and aeronautical. The application is free to compose a settings page with other cards or to replace standard cards as required.

Cards are identified by an ID string. Each card is represented by an object that contains the following properties:

The values are set the same way as the equivalent properties in a Page. A settings page info object is composed by concatenating the equivalent properties in a list of card IDs plus any custom content. The card objects are provided in one of two objects that contain properties whose key is the card ID: stdSettingsCards and aeroSettingsCards.

There are two default Settings pages provided: a standard page that just contains the standard cards and an aeronautical page that contains both the standard and aeronautical cards.

Standard cards

The standard cards are suitable for inclusion in most apps. They are available in the stdSettingsCards object. The provided card IDs are:

Standard settings page

A Settings page that contains only the standard cards is available by importing common/page/stdSettings.js. This is usually done in app.js.

Aeronautical cards

The aeronautical cards are suitable for inclusion in aeronautical apps. They are available in the aeroSettingsCards object. The provided card IDs are:

Standard settings page

A Settings page that contains both the standard cards and aeronautical cards is available by importing common/page/aeroSettings.js. This is usually done in app.js.

Exported identifiers

stdSettingsCards

Syntax

import {stdSettingsCards} from 'common/page/stdSettingsCards.js';

An object with properties for the standard cards.


aeroSettingsCards

Syntax

import {aeroSettingsCards} from 'common/page/aeroSettingsCards.js';

An object with properties for the aeronautical cards.


Custom settings cards

See common/page/aeroSettingsCards.js for how to combine different cards.