mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
docs(misc): copy edits from @kgindervogel
This commit is contained in:
@ -111,17 +111,17 @@ export class TextInput extends InputBase {
|
|||||||
* @description
|
* @description
|
||||||
*
|
*
|
||||||
* `ion-textarea` is is used for multi-line text inputs. Ionic still
|
* `ion-textarea` is is used for multi-line text inputs. Ionic still
|
||||||
* uses an actual `<textarea>` HTML element within the component,
|
* uses an actual `<textarea>` HTML element within the component;
|
||||||
* however, with Ionic wrapping the native HTML textarea element then
|
* however, with Ionic wrapping the native HTML text area element, Ionic
|
||||||
* Ionic is able to better handle the user experience and interactivity.
|
* is able to better handle the user experience and interactivity.
|
||||||
*
|
*
|
||||||
* Not that `<ion-textarea>` must load its value from the `value` or
|
* Not that `<ion-textarea>` must load its value from the `value` or
|
||||||
* `[(ngModel)]` attribute. Unlike the native `<textarea>` element,
|
* `[(ngModel)]` attribute. Unlike the native `<textarea>` element,
|
||||||
* `<ion-textarea>` does not support loading its value from the
|
* `<ion-textarea>` does not support loading its value from the
|
||||||
* textarea's inner content.
|
* textarea's inner content.
|
||||||
*
|
*
|
||||||
* When requiring only a single-line text input it's recommended
|
* When requiring only a single-line text input, we recommend using
|
||||||
* to use `<ion-input>` instead.
|
* `<ion-input>` instead.
|
||||||
*
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```html
|
* ```html
|
||||||
|
@ -7,8 +7,8 @@ import {Directive, ElementRef, Renderer, Input, Optional, Attribute} from 'angul
|
|||||||
* Labels are placed inside of an `ion-item` element and can be used
|
* Labels are placed inside of an `ion-item` element and can be used
|
||||||
* to describe an `ion-input`, `ion-toggle`, `ion-checkbox`, and more.
|
* to describe an `ion-input`, `ion-toggle`, `ion-checkbox`, and more.
|
||||||
*
|
*
|
||||||
* @property [fixed] - A persistant label that sits next the input.
|
* @property [fixed] - A persistent label that sits next the input.
|
||||||
* @property [floating] - A label that will float about the input if the input is empty of looses focus.
|
* @property [floating] - A label that will float about the input if the input is empty or loses focus.
|
||||||
* @property [stacked] - A stacked label will always appear on top of the input.
|
* @property [stacked] - A stacked label will always appear on top of the input.
|
||||||
|
|
||||||
*
|
*
|
||||||
|
@ -9,7 +9,7 @@ import {isPresent} from '../../util/util';
|
|||||||
/**
|
/**
|
||||||
* @name ViewController
|
* @name ViewController
|
||||||
* @description
|
* @description
|
||||||
* Access various features and information about the current view
|
* Access various features and information about the current view.
|
||||||
* @usage
|
* @usage
|
||||||
* ```ts
|
* ```ts
|
||||||
* import {Page, ViewController} from 'ionic-angular';
|
* import {Page, ViewController} from 'ionic-angular';
|
||||||
@ -149,7 +149,7 @@ export class ViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check to see if you can go back in the navigation stack
|
* Check to see if you can go back in the navigation stack.
|
||||||
* @param {boolean} Check whether or not you can go back from this page
|
* @param {boolean} Check whether or not you can go back from this page
|
||||||
* @returns {boolean} Returns if it's possible to go back from this Page.
|
* @returns {boolean} Returns if it's possible to go back from this Page.
|
||||||
*/
|
*/
|
||||||
@ -186,7 +186,7 @@ export class ViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* You can find out the index of the current view is in the current navigation stack
|
* You can find out the index of the current view is in the current navigation stack.
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* export class Page1 {
|
* export class Page1 {
|
||||||
|
@ -10,7 +10,7 @@ import {ready, windowDimensions, flushDimensionCache} from '../util/dom';
|
|||||||
* The Platform service can be used to get information about your current device.
|
* The Platform service can be used to get information about your current device.
|
||||||
* You can get all of the platforms associated with the device using the [platforms](#platforms)
|
* You can get all of the platforms associated with the device using the [platforms](#platforms)
|
||||||
* method, including whether the app is being viewed from a tablet, if it's
|
* method, including whether the app is being viewed from a tablet, if it's
|
||||||
* on a mobile device or browser, and the exact platform (ios, android, etc).
|
* on a mobile device or browser, and the exact platform (iOS, Android, etc).
|
||||||
* You can also get the orientation of the device, if it uses right-to-left
|
* You can also get the orientation of the device, if it uses right-to-left
|
||||||
* language direction, and much much more. With this information you can completely
|
* language direction, and much much more. With this information you can completely
|
||||||
* customize your app to fit any device.
|
* customize your app to fit any device.
|
||||||
@ -79,8 +79,8 @@ export class Platform {
|
|||||||
* this.platform = platform;
|
* this.platform = platform;
|
||||||
*
|
*
|
||||||
* if (this.platform.is('ios')) {
|
* if (this.platform.is('ios')) {
|
||||||
* // This will only print when on ios
|
* // This will only print when on iOS
|
||||||
* console.log("I'm an ios device!");
|
* console.log("I'm an iOS device!");
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
|
@ -104,7 +104,7 @@ export class Keyboard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Progamatically close they keyboard
|
* Programmatically close the keyboard
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
close() {
|
close() {
|
||||||
|
Reference in New Issue
Block a user