@mentor-medier/header-nav-chain-block v5.13.3
@wpmedia/header-nav-chain-block
Please provide a 1-2 sentence description of what the block is and what it does.
Acceptance Criteria
- Add AC relevant to the block
Props
Prop | Required | Type | Description |
---|---|---|---|
required prop | yes | ||
optional prop | no | ||
contentConfig example | Please specify which content sources are compatible |
ANS Schema
Outline any schema information requirements necessary to know for ths block
ANS Fields
children
available viasite-service-hierarchy
(optional)children[x].node_type
children[x].url
children[x].display_name
children[x].name
Internationalization fields
Phrase key | Default (English) |
---|---|
header-nav-chain-block.sections-button | Sections |
header-nav-chain-block.search-text | Search |
Events
Blocks can emit events. The following is a list of events that are emitted by this block.
Event Name | Description |
---|---|
eventName | Describe the event |
Event Listening
Include block specific instructions for event listening.
OR
This block does not emit any events.
Additional Considerations
Custom Search Action
If you are creating custom blocks that are leveraging all or parts of the header-nav-block and
need to over-ride the action taken when the search box field has been submitted
(for both click and keyboard submisstions) an over-ride function can be passed as a prop to either the main default.jsx (nav component) or to the search-box.jsx component. The prop name is called customSearchAction
. If passed into default.jsx it will pass it down to search-box. Your implementation of customSearchAction
should expect one param that will be the value of the search entry. If customSearchAction
is not implemented, default behavior will occur during a search submission.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago