Repository navigation
Conversation
| @@ -31,13 +31,13 @@ helper: | |||
| <tr><td>`selectionDirection`</td><td>`spellcheck`</td><td>`type`</td></tr> | |||
| </table> | |||
There was a problem hiding this comment.
This section can probably be deleted since you can pass literally any attributes
There was a problem hiding this comment.
Other than @type, @value and @checked (double check the API docs PR as the final source of truth). Could replace this with an example.
| If these attributes are set without the `@` symbol, their values will be set | ||
| directly on the element. However, when including the `@` symbol, these | ||
| values will be bound to a property on the template's current | ||
| rendering context. For example: |
There was a problem hiding this comment.
This is not quite right. It will be "bound" either way... see the API docs PR.
|
|
||
| ```handlebars | ||
| {{input type="text" value=this.firstName disabled=this.entryNotAllowed size="50"}} | ||
| <Input type="text" @value={{this.firstName}} @disabled={{this.entryNotAllowed}} size="50" /> |
There was a problem hiding this comment.
@type, disabled (no @)
| <Input @value={{this.firstName}} @key-press={{action "updateFirstName"}} /> | ||
| ``` | ||
|
|
||
| The following event types are supported (dasherized format): |
There was a problem hiding this comment.
I think the API docs PR refers to these as "custom events".. double check to make sure and try to align the language
|
|
||
| ```handlebars | ||
| {{input type="checkbox" name="isAdmin" checked=this.isAdmin}} | ||
| <Input type="checkbox" @name="isAdmin" @checked={{this.isAdmin}} /> |
|
|
||
| ```handlebars | ||
| {{input type="checkbox" keyPress=(action "updateName")}} | ||
| <Input type="checkbox" @keyPress={{action "updateName"}} /> |
There was a problem hiding this comment.
| <Input type="checkbox" @keyPress={{action "updateName"}} /> | |
| <Input @type="checkbox" @keyPress={{action "updateName"}} /> |
chancancode
left a comment
There was a problem hiding this comment.
(see inline comments)
|
Hi @ddoria921! Thanks for your help! It looks like these changes have been made on the |
jenweber
left a comment
There was a problem hiding this comment.
See other comment - this should target octane so that it can be merged. Thanks!
|
@jenweber oh my bad! Should I close this PR and open a new one? I'm not sure how to keep this PR intact and branch off of |
92e0060 to
2802b7e
Compare
|
@ddoria921 I have changed the target branch and rebased for you! You will have to reset your branch, |
|
@ddoria921 I would like to get your work merged so we can use it as an example that other contributors can follow in other pages of the guides. Do you have time to finish up this PR? Or would you like someone to help you with it? Thanks! |
|
This is still on my radar. Gonna find some time to get this done within the next week. |
|
Hi @ddoria921, some of this work has been merged in through another PR, and some has not, so make sure to rebase or merge in the latest from |
Bring branch up-to-date with `octane` branch # Conflicts: # guides/release/templates/input-helpers.md
|
@ddoria921 you still have some asks, are you able to address them or do you need help? |
|
I'm closing this PR, as most of the work has made it into the Guides now. If you would like to include any of the other changes, feel free to open a new PR. Thanks everyone for your help! |
I started this work in response to #692.
In this PR, I started the work of converting the Input Helpers guide. I mainly worked on updating the code snippets, but also updated some of the copy where I thought it was necessary. Any feedback here is appreciated.
I particularly wasn't sure how the checkbox input helper would work with the new syntax. I assumed the correct way was to use
<Input type="checkbox" />, but wasn't sure if it should be<Input @type="checkbox" />instead.I'm happy to make any updates that are necessary.