Attach libraries to examples plugin definitions

Created on 5 November 2022, over 1 year ago
Updated 1 September 2023, 10 months ago

Problem/Motivation

Instead of adding the attachment in the render array itself:

album:
  label: Bootstrap Album
  description: "Simple one-page template for photo galleries, portfolios, and more. https://getbootstrap.com/docs/4.6/examples/album/"
  render:
    - "#type": pattern
      "#id": jumbotron
      "#attached":
        "library":
          - ui_suite_bootstrap/album_example

Attach it to the definition, like what ui_patterns is already doing:

album:
  label: Bootstrap Album
  description: "Simple one-page template for photo galleries, portfolios, and more. https://getbootstrap.com/docs/4.6/examples/album/"
  render:
    - "#type": pattern
      "#id": jumbotron
  library:
   - ui_suite_bootstrap/album_example

It is flatter and cleaner.

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024