Skip to content

Template refs (Options API) #117

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

Merged
merged 5 commits into from
Jun 17, 2020
Merged

Template refs (Options API) #117

merged 5 commits into from
Jun 17, 2020

Conversation

NataliaTepluhina
Copy link
Member

This PR adds a section regarding using template refs in the Options API.

Close #74

@NataliaTepluhina NataliaTepluhina added enhancement New feature or request content Issues / PRs related to docs content labels Jun 14, 2020
@NataliaTepluhina NataliaTepluhina added this to the alpha milestone Jun 14, 2020
@NataliaTepluhina NataliaTepluhina self-assigned this Jun 14, 2020
Co-authored-by: Phan An <me@phanan.net>
to access the `<base-input>` instance. This may be useful when you want to, for example, programmatically set focus on this input from a parent. In that case, the `<base-input>` component may similarly use a `ref` to provide access to specific elements inside it, such as:

```html
<input ref="input">
Copy link
Member

Choose a reason for hiding this comment

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

I feel the focus example is more natural (and simpler). Shouldn't we introduce it first?

Copy link
Member Author

Choose a reason for hiding this comment

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

@znck nice idea! I changed the description to move the most complex part towards the end of the guide

@NataliaTepluhina NataliaTepluhina requested a review from znck June 15, 2020 13:57
@NataliaTepluhina NataliaTepluhina merged commit bdd72ab into master Jun 17, 2020
@bencodezen bencodezen mentioned this pull request Jul 6, 2020
25 tasks
@NataliaTepluhina NataliaTepluhina deleted the template-refs branch July 15, 2020 09:15
TalexDreamSoul pushed a commit to Talexs/docs that referenced this pull request Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues / PRs related to docs content enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a section regarding template refs to Options API
3 participants