fix(all): docs for all missing props

This commit is contained in:
Manu Mtz.-Almeida
2018-10-11 16:02:15 -05:00
committed by Manu MA
parent 53305741a0
commit a72fced6fe
119 changed files with 1026 additions and 657 deletions

View File

@ -46,7 +46,7 @@ export class Textarea implements ComponentInterface {
@Prop() autofocus = false;
/**
* If true, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types.
* If `true`, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types.
*/
@Prop({ mutable: true }) clearOnEdit = false;
@ -61,7 +61,7 @@ export class Textarea implements ComponentInterface {
}
/**
* If true, the user cannot interact with the textarea. Defaults to `false`.
* If `true`, the user cannot interact with the textarea. Defaults to `false`.
*/
@Prop() disabled = false;
@ -91,17 +91,17 @@ export class Textarea implements ComponentInterface {
@Prop() placeholder?: string;
/**
* If true, the user cannot modify the value. Defaults to `false`.
* If `true`, the user cannot modify the value. Defaults to `false`.
*/
@Prop() readonly = false;
/**
* If true, the user must fill in a value before submitting a form.
* If `true`, the user must fill in a value before submitting a form.
*/
@Prop() required = false;
/**
* If true, the element will have its spelling and grammar checked. Defaults to `false`.
* If `true`, the element will have its spelling and grammar checked. Defaults to `false`.
*/
@Prop() spellcheck = false;
@ -168,6 +168,10 @@ export class Textarea implements ComponentInterface {
this.emitStyle();
}
/**
* Sets focus on the specified `ion-textarea`. Use this method instead of the global
* `input.focus()`.
*/
@Method()
setFocus() {
if (this.nativeInput) {