docs(all): possible values are extracted by stencil (#16190)

* docs(all): possible values are extracted by stencil

* add defaults

* remove all hardcoded defaults

* update stencil
This commit is contained in:
Manu MA
2018-11-02 00:06:40 +01:00
committed by GitHub
parent 335acf96ee
commit ecc2c55370
151 changed files with 1363 additions and 1430 deletions

View File

@ -24,7 +24,6 @@ export class Textarea implements ComponentInterface {
/**
* The mode determines which platform styles to use.
* Possible values are: `"ios"` or `"md"`.
*/
@Prop() mode!: Mode;
@ -36,12 +35,12 @@ export class Textarea implements ComponentInterface {
@Prop() color?: Color;
/**
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Defaults to `"none"`.
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
*/
@Prop() autocapitalize = 'none';
/**
* This Boolean attribute lets you specify that a form control should have input focus when the page loads. Defaults to `false`.
* This Boolean attribute lets you specify that a form control should have input focus when the page loads.
*/
@Prop() autofocus = false;
@ -51,7 +50,7 @@ export class Textarea implements ComponentInterface {
@Prop({ mutable: true }) clearOnEdit = false;
/**
* Set the amount of time, in milliseconds, to wait to trigger the `ionChange` event after each keystroke. Default `0`.
* Set the amount of time, in milliseconds, to wait to trigger the `ionChange` event after each keystroke.
*/
@Prop() debounce = 0;
@ -61,7 +60,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.
*/
@Prop() disabled = false;
@ -91,7 +90,7 @@ 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.
*/
@Prop() readonly = false;
@ -101,7 +100,7 @@ export class Textarea implements ComponentInterface {
@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.
*/
@Prop() spellcheck = false;
@ -116,9 +115,9 @@ export class Textarea implements ComponentInterface {
@Prop() rows?: number;
/**
* Indicates how the control wraps text. Possible values are: `"hard"`, `"soft"`, `"off"`.
* Indicates how the control wraps text.
*/
@Prop() wrap?: string;
@Prop() wrap?: 'hard' | 'soft' | 'off';
/**
* The value of the textarea.