5.13.3 • Published 3 years ago

@mentor-medier/header-nav-chain-block v5.13.3

Weekly downloads
263
License
CC-BY-NC-ND-4.0
Repository
github
Last release
3 years ago

@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

PropRequiredTypeDescription
required propyes
optional propno
contentConfig examplePlease specify which content sources are compatible

ANS Schema

Outline any schema information requirements necessary to know for ths block

ANS Fields

  • children available via site-service-hierarchy (optional)
  • children[x].node_type
  • children[x].url
  • children[x].display_name
  • children[x].name

Internationalization fields

Phrase keyDefault (English)
header-nav-chain-block.sections-buttonSections
header-nav-chain-block.search-textSearch

Events

Blocks can emit events. The following is a list of events that are emitted by this block.

Event NameDescription
eventNameDescribe 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.

5.13.2

3 years ago

5.13.3

3 years ago

5.11.3

3 years ago

5.11.2

3 years ago

5.10.4

3 years ago

5.10.2

3 years ago

5.10.0

3 years ago

5.9.15

3 years ago