mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -12,8 +12,6 @@ import {IonicConfig} from '../../config/config';
|
|||||||
import {IonicComponent, IonicView} from '../../config/decorators';
|
import {IonicComponent, IonicView} from '../../config/decorators';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionCheckbox
|
|
||||||
* @description
|
|
||||||
* The checkbox is no different than the HTML checkbox input, except it's styled differently
|
* The checkbox is no different than the HTML checkbox input, except it's styled differently
|
||||||
*
|
*
|
||||||
* See the [Angular 2 Docs](https://angular.io/docs/js/latest/api/core/Form-interface.html) for more info on forms and input.
|
* See the [Angular 2 Docs](https://angular.io/docs/js/latest/api/core/Form-interface.html) for more info on forms and input.
|
||||||
|
@ -10,13 +10,11 @@ import {ScrollTo} from '../../animations/scroll-to';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionContent
|
* The Content component provides an easy to use content area that can be configured to use Ionic's custom Scroll View, or the built in overflow scrolling of the browser.
|
||||||
* @description
|
|
||||||
* The ionContent component provides an easy to use content area that can be configured to use Ionic's custom Scroll View, or the built in overflow scrolling of the browser.
|
|
||||||
*
|
*
|
||||||
* While we recommend using the custom Scroll features in Ionic in most cases, sometimes (for performance reasons) only the browser's native overflow scrolling will suffice, and so we've made it easy to toggle between the Ionic scroll implementation and overflow scrolling.
|
* While we recommend using the custom Scroll features in Ionic in most cases, sometimes (for performance reasons) only the browser's native overflow scrolling will suffice, and so we've made it easy to toggle between the Ionic scroll implementation and overflow scrolling.
|
||||||
*
|
*
|
||||||
* You can implement pull-to-refresh with the ionRefresher component.
|
* You can implement pull-to-refresh with the [Refresher](../../scroll/Refresher) component.
|
||||||
*
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```html
|
* ```html
|
||||||
|
@ -11,9 +11,7 @@ let activeInput = null;
|
|||||||
let lastInput = null;
|
let lastInput = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionInput
|
* The Input component is used to focus text input elements.
|
||||||
* @description
|
|
||||||
* The ionInput component is used to focus text input elements.
|
|
||||||
*
|
*
|
||||||
* The `focusNext()` and `focusPrevious()` methods make it easy to focus input elements across all devices.
|
* The `focusNext()` and `focusPrevious()` methods make it easy to focus input elements across all devices.
|
||||||
*
|
*
|
||||||
|
@ -4,8 +4,6 @@ import {dom} from 'ionic/util';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionItem
|
|
||||||
* @description
|
|
||||||
* Creates a list-item that can easily be swiped,
|
* Creates a list-item that can easily be swiped,
|
||||||
* deleted, reordered, edited, and more.
|
* deleted, reordered, edited, and more.
|
||||||
*
|
*
|
||||||
|
@ -7,15 +7,13 @@ import {ListVirtualScroll} from './virtual';
|
|||||||
import * as util from 'ionic/util';
|
import * as util from 'ionic/util';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionList
|
|
||||||
* @description
|
|
||||||
* The List is a widely used interface element in almost any mobile app, and can include
|
* The List is a widely used interface element in almost any mobile app, and can include
|
||||||
* content ranging from basic text all the way to buttons, toggles, icons, and thumbnails.
|
* content ranging from basic text all the way to buttons, toggles, icons, and thumbnails.
|
||||||
*
|
*
|
||||||
* Both the list, which contains items, and the list items themselves can be any HTML
|
* Both the list, which contains items, and the list items themselves can be any HTML
|
||||||
* element.
|
* element.
|
||||||
*
|
*
|
||||||
* Using the ionList and ionItem components make it easy to support various
|
* Using the List and Item components make it easy to support various
|
||||||
* interaction modes such as swipe to edit, drag to reorder, and removing items.
|
* interaction modes such as swipe to edit, drag to reorder, and removing items.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -7,8 +7,6 @@ import {makeComponent} from '../../config/decorators';
|
|||||||
import * as util from 'ionic/util';
|
import * as util from 'ionic/util';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionModal
|
|
||||||
* @description
|
|
||||||
* The Modal is a content pane that can go over the user's main view temporarily. Usually used for making a choice or editing an item.
|
* The Modal is a content pane that can go over the user's main view temporarily. Usually used for making a choice or editing an item.
|
||||||
*
|
*
|
||||||
* @usage
|
* @usage
|
||||||
|
@ -9,8 +9,6 @@ import * as util from 'ionic/util';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Popup
|
|
||||||
* @description
|
|
||||||
* The Ionic Popup service allows the creation of popup windows that require the user to respond in order to continue.
|
* The Ionic Popup service allows the creation of popup windows that require the user to respond in order to continue.
|
||||||
*
|
*
|
||||||
* The popup service has support for more flexible versions of the built in `alert()`, `prompt()`, and `confirm()` functions that users are used to, in addition to allowing popups with completely custom content and look.
|
* The popup service has support for more flexible versions of the built in `alert()`, `prompt()`, and `confirm()` functions that users are used to, in addition to allowing popups with completely custom content and look.
|
||||||
|
@ -7,8 +7,6 @@ import {ListHeader} from '../list/list';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionRadioGroup
|
|
||||||
* @description
|
|
||||||
* A radio group is a group of radio components.
|
* A radio group is a group of radio components.
|
||||||
*
|
*
|
||||||
* Selecting a radio button in the group unselects all others in the group.
|
* Selecting a radio button in the group unselects all others in the group.
|
||||||
|
@ -6,11 +6,9 @@ import * as util from 'ionic/util';
|
|||||||
import {raf, ready, CSS} from 'ionic/util/dom';
|
import {raf, ready, CSS} from 'ionic/util/dom';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionRefresher
|
* Allows you to add pull-to-refresh to an Content component.
|
||||||
* @description
|
|
||||||
* Allows you to add pull-to-refresh to an ionContent component.
|
|
||||||
*
|
*
|
||||||
* Place it as the first child of your ionContent or ionScroll element.
|
* Place it as the first child of your Content or Scroll element.
|
||||||
*
|
*
|
||||||
* When refreshing is complete, call `refresher.complete()` from your controller.
|
* When refreshing is complete, call `refresher.complete()` from your controller.
|
||||||
*
|
*
|
||||||
|
@ -10,8 +10,8 @@ import {Animation} from '../../animations/animation';
|
|||||||
import * as util from 'ionic/util';
|
import * as util from 'ionic/util';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ion-scroll is a non-flexboxed scroll area that can
|
* Scroll is a non-flexboxed scroll area that can scroll horizontally or
|
||||||
* scroll horizontally or vertically.
|
* vertically.
|
||||||
*/
|
*/
|
||||||
@IonicComponent({
|
@IonicComponent({
|
||||||
selector: 'ion-scroll',
|
selector: 'ion-scroll',
|
||||||
|
@ -45,8 +45,6 @@ class MediaSwitch {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name ionSwitch
|
|
||||||
* @description
|
|
||||||
* A switch technically is the same thing as an HTML checkbox input, except it looks different and is easier to use on a touch device. Ionic prefers to wrap the checkbox input with the <label> in order to make the entire toggle easy to tap or drag.
|
* A switch technically is the same thing as an HTML checkbox input, except it looks different and is easier to use on a touch device. Ionic prefers to wrap the checkbox input with the <label> in order to make the entire toggle easy to tap or drag.
|
||||||
*
|
*
|
||||||
* Toggles can also have colors assigned to them, by adding the `toggle-assertive` attribute to assign the assertive color.
|
* Toggles can also have colors assigned to them, by adding the `toggle-assertive` attribute to assign the assertive color.
|
||||||
|
Reference in New Issue
Block a user