ska-gui-components Logo
2.8.38

Contents:

  • Usage
  • Functionality
  • Functionality from ska-javascript-components library
  • Alert
  • AlertCard
  • Backdrop
  • Button
  • ButtonToggle
  • DataGrid
  • DataTree
  • DateEntry
  • DropDown
  • FileUpload
  • Footer
  • Header
  • IconButton
  • Icons
  • InfoCard
  • NumberEntry
  • Progress
  • TelescopeSelector
  • TextEntry
  • TickBox
  • SearchEntry
  • StatusIcon
  • Version
ska-gui-components
  • Header
  • View page source

Header

Overview

Standard Header wrapper component that spaces evenly it’s child components This includes the telescopeSelector component which can be suppressed if not required.

_images/header.png
Example : Default usage
import { Header } from '@ska-telescope/ska-gui-components';

...

<Header testId="testId" title="SOME TITLE">
   <Grid item>THIS</Grid>
   <Grid item>IS</Grid>
   <Grid item>THE</Grid>
   <Grid item>FOOTER</Grid>
</Header>
Properties

Property

Type

Required

default

ariaDescription

string

No

Used by Screen Readers

ariaTitle

string

No

AlertCard

Used by Screen Readers

docs

{ tooltip: string; url: string; }

No

Displays docs icon if a url is provided

selectTelescope

boolean

No

true

Allows the selection of telescope to be suppressed

showHelp

boolean

No

false

Allows the help to be displayed if there is content to be displayed

testId

string

No

header-testId

Identifier for testing purposes

title

string

No

Title of the application, which is forced to upper case

toolTip

Object

No

all values ‘’

Contains toolTip text for display (See below)

useSymbol

boolean

No

false

Allows for the SKAO Symbol to be used instead of the Logo

ToolTip values ( Translated values should be passed in as an override )

Property

Type

Required

default

skao

string

No

‘SKAO WebSite’

ToolTip for the SKAO Logo

mode

string

No

‘Light / Dark Mode’

ToolRip for the Theme mode

Constants

none

Testing Identifier

Provided by the property testId

Previous Next

© Copyright 2023, SKAO.

Built with Sphinx using a custom SKA theme based on a theme provided by Read the Docs. Creative Commons Licence
SKA developer documentation by SKA Observatory is licensed under a Creative Commons Attribution 4.0 International License .
Based on a work at github.com/ska-telescope/developer.skatelescope.org .

This work is inspired by the LSST developer guide © Copyright 2016-2018 Association of Universities for Research in Astronomy, licensed under a Creative Commons Attribution 4.0 International License .

This work is inspired by the Apache developer information Copyright © 2018 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 .