types.TablePosition#
Nine-point screen anchor for RuntimeTable.position.
SYNTAX#
type TablePosition = 'top_left' | 'top_center' | 'top_right' | 'middle_left' | 'middle_center' | 'middle_right' | 'bottom_left' | 'bottom_center' | 'bottom_right'ARGUMENTS#
top_left('top_left') — Anchor to the top-left corner.top_center('top_center') — Anchor to the top edge, horizontally centered.top_right('top_right') — Anchor to the top-right corner.middle_left('middle_left') — Anchor to the left edge, vertically centered.middle_center('middle_center') — Anchor to the center of the pane.middle_right('middle_right') — Anchor to the right edge, vertically centered.bottom_left('bottom_left') — Anchor to the bottom-left corner.bottom_center('bottom_center') — Anchor to the bottom edge, horizontally centered.bottom_right('bottom_right') — Anchor to the bottom-right corner.
RETURNS#
Type definition.
EXAMPLE#
return {
name: 'Stats', pane: 'overlay',
tables: [{
id: 'stats', position: 'bottom_right', rows: 1, cols: 2,
cells: [
{ row: 0, col: 0, text: 'ATR' },
{ row: 0, col: 1, text: atr.toFixed(2) }
]
}]
};