Constructor
Parameters:
Name |
Type |
Attributes |
Default |
Description |
dataObject |
DataObject
|
<optional>
|
null
|
|
options |
Object
|
<optional>
|
{}
|
Properties
Name |
Type |
Attributes |
Default |
Description |
brand |
string
|
Component
|
|
|
the main title |
brandAnchor |
string
|
<optional>
|
"/"
|
an activation URL for the brand HeadingComponent |
menuItems |
Array.<Object>
|
<optional>
|
[]
|
Properties
Name |
Type |
Description |
name |
string
|
|
anchor |
string
|
|
|
|
- Source:
Example
const mastheadComponent = new MastheadComponent(undefined, {
brand: 'Bink', // 'brand' could also be a Component like an ImageComponent
menuItems: [
{ name: 'Home', anchor: '/' },
{ name: 'About', anchor: '/#about' },
{ name: 'Account', anchor: '/#account' },
]
})