Skip to content

v8.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Feb 01:50
· 7 commits to master since this release

This minor release implements a new order-item property that will add custom attributes to a sidebar item.

Order Items Properties

Property Type Required Description
attributes String or Object no If it is an object it defines a group of attributes
that will be applied to the sidebar item.
If it is a string, then it makes reference
to an object defined in js_variables

Attributes as an object

order:
  - item: 'settings'
    attributes:
      data-my-prop: 'some-prop'
      data-test: 'test-attribute'
      

Attributes as a string (they make reference to a variable in js_variables)

js_variables:
  my_attributes:
    data-my-prop: 'some-prop'
    data-test: 'test-attribute'
order:
  - item: 'settings'
    attributes: 'my_attributes'
      

🚀 Features

🧩 Dependencies

📝 Documentation