How to use
Add header
dependency into your FASTN.ftd
-- fastn.dependency: fastn-community.github.io/header
Import header
into your .ftd
file
-- import: fastn-community.github.io/header
-- header.header:
sections: $header.sitemap.sections
site-url: /docs/
site-name: Basic Header
Properties:
Below are details of all properties of this component.
sections
type:
sections list (required
)
sub-sections
type:
sub-sections list (optional
)
current-section
type:
current-section title (optional
)
current-subsection
type:
current-subsection title (optional
)
current-page
type:
current-page title (optional
)
current-page
type:
current-page title (optional
)
It’s used to add a site link to your site homepage.
It’s used to add a site name to header
component.
products
type:
List of Records(optional
)
Its used to pass products
record list to header
component. products
property will be passed to product-switcher
which is imported by default
inside header
component FASTN.ftd
.
It’s used to enable login button in header
component.
It’s used to specify login button text in header
component.
It’s used to specify login button url in header
component.
github-icon
type:
Boolean default: false
It’s used to specify enable GitHub icon button in header
component.
It’s used to specify github-icon
link in header
component.
search
type:
Boolean ('optional')
It’s used to enable search button in header
component.
It’s used to specify search button link in header
component.