Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Introduce query decorator #6743

Closed
1 task done
g-cheishvili opened this issue Mar 20, 2023 · 1 comment · Fixed by #9567
Closed
1 task done

[Feature Request]: Introduce query decorator #6743

g-cheishvili opened this issue Mar 20, 2023 · 1 comment · Fixed by #9567
Assignees
Labels
Milestone

Comments

@g-cheishvili
Copy link

Feature Request Description

Introduce a @query decorator because every time component needs to query it's child elements, same pattern is written

get titleTextDOM() {
  return this.shadowRoot!.querySelector<HTMLElement>(".ui5-nli-title-text");
}

or something along the lines. This leads to repetitive code and a lot of the noise

Proposed Solution

One decorator, which receives either string or Ui5Element, which will set a getter with similar thing that Is above

Proposed Alternatives

No response

Additional Context

No response

Priority

Medium

Privacy Policy

  • I’m not disclosing any internal or sensitive information.
@g-cheishvili g-cheishvili added enhancement New feature or request feature request labels Mar 20, 2023
@g-cheishvili
Copy link
Author

Nice, and I tagged someone :D sorry @query for bothering, did not mean to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

2 participants