Update docs for the builtin components#17810
Conversation
| * form | ||
|
|
||
| When invoked with `{{input type="checkbox"}}`, you can only customize these attributes. When | ||
| invoked with `<Input @type="checkbox" />`, you can just use HTML attributes directly. |
There was a problem hiding this comment.
This is somewhat confusing, because it seems to suggest you can do <Input type="checkbox" />
| Search: | ||
| {{input value=searchWord}} | ||
| ``` | ||
| <Input @value={{this.searchWord}}>` |
| }); | ||
| ``` | ||
| In most cases, if you want to pass an attribute to the underlying HTML `<input>` element, you | ||
| can pass the attribute directly, just like any other Ember component. |
There was a problem hiding this comment.
A short example would be good here
| element. When left unquoted, these values will be bound to a property on the | ||
| template's current rendering context (most typically a controller instance). | ||
| A very common use of this helper is to bind the `value` of an input to an Object's attribute: | ||
| If no `type` argument is specified, a default of type 'text' is used. |
There was a problem hiding this comment.
do we want to say @type here?
There was a problem hiding this comment.
You suggested to me to remove the @s 😛
|
|
||
| ### Extending `TextField` | ||
|
|
||
| Internally, `<Input @type="text" />` creates an instance of `TextField`, passing arguments from |
| classNames: ['my-app-checkbox'] | ||
| }); | ||
| ``` | ||
| Internally, `<Input @type="checkbox" />` creates an instance of `Ember.Checkbox` |
There was a problem hiding this comment.
Does this need the same text as above?
|
|
||
| See more about [Ember components](/api/ember/release/classes/Component) | ||
| /** | ||
| See Ember.Templates.components.Textarea. |
There was a problem hiding this comment.
Seems like this is missing a link
| `layoutName` properties will not be applied. | ||
| The internal representation used for `Textarea` invocations. | ||
|
|
||
| @class TextArea |
There was a problem hiding this comment.
did this get associated to @ember/component/text-area correctly? does it need a @for or something
chancancode
left a comment
There was a problem hiding this comment.
this mostly look good to me
|
Looks like the CI failure is needing to add these to |
21776ca to
0cc0047
Compare
No description provided.