FlexberrySitemapComponent Class
Component for sitemap render from the object with links.
Item Index
Methods
Methods
_elementMatchesRegex
(
private
-
regex
-
element
Checks element caption string for regex.
_searchTree
(
private
-
regexQuery
-
currentTree
Recursively returns filtered sitemap.
_startSearch
()
private
Runs search.
clickSearchIcon
()
private
Click on the search icon handler.
startSearch
()
private
Initiate sitemap search.
toggleResultsList
()
private
Toggle isShowingResults prop.
Properties
placeholder
String
Component's input placeholder.
Default: t('components.flexberry-sitemap-searchbar.placeholder')
sitemap
Object
Object with links description.
Example:
{
nodes: [
{
link: 'index',
caption: 'Home',
title: 'Go to homepage!',
},
{
caption: 'Superheroes',
children: [
{
link: 'superman',
caption: 'Superman',
},
{
link: 'ironman',
caption: 'Ironman',
},
],
},
],
}