Skip to content

Added ref-attribute documentation - #813

Merged
michielvandergeest merged 2 commits into
devfrom
feat/add-ref-docs
Oct 22, 2026
Merged

michielvandergeest merged 2 commits into
devfrom
feat/add-ref-docs

Conversation

@jfboeve

@jfboeve jfboeve commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown

Test Results: ✅ PASSED

Run at: 2026-10-21T08:17:53.232Z

Summary:
passed: 1563 failed: 0 of 1563 tests

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Benchmark comparison

Timing Change
Synchronous generation +3.08%
Total time to idle +0.13%

Negative means faster. Informational results; small changes can be measurement noise.

Full report · Workflow run

Head: b496385c1722 · Base: d38eef864ec5

@michielvandergeest michielvandergeest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

2 comments:

  • we can also reference components - it's show in the example, but in the text it only mentions adding a ref to an elements
  • I just noticed that we also have a line on using ref in docs/built-in/directives.md, perhaps we should reference that?

Comment thread docs/essentials/element_attributes.md Outdated
<MyComponent ref="MyComponent">
```

With a `ref` setup you can use it the `$select` method inside the same component where the element is referenced in its template. For more information follow this [link](https://lightningjs.io/v3-docs/blits/components/utility_methods.html#select)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use relative links without the full domain

@github-actions

Copy link
Copy Markdown

Test Results: ✅ PASSED

Run at: 2026-10-22T07:59:36.253Z

Summary:
passed: 1563 failed: 0 of 1563 tests

@michielvandergeest
michielvandergeest changed the base branch from master to dev October 22, 2026 08:22

@michielvandergeest michielvandergeest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michielvandergeest
michielvandergeest merged commit c0a69ed into dev Oct 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants