mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
docs(): update docs
This commit is contained in:
@ -11,7 +11,9 @@ import { ViewController } from '../../navigation/view-controller';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ionic App
|
* @name App
|
||||||
|
* @description
|
||||||
|
* App is a utility class used in Ionic to get information about various aspects of an app
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class App {
|
export class App {
|
||||||
|
@ -4,6 +4,9 @@ import { Directive } from '@angular/core';
|
|||||||
* @name Avatar
|
* @name Avatar
|
||||||
* @module ionic
|
* @module ionic
|
||||||
* @description
|
* @description
|
||||||
|
* An Avatar is a component that creates a circular image for an item.
|
||||||
|
* Avatar's can be place on the left or right side of an itemt with the `item-left` or `item-right` directive.
|
||||||
|
* @see {@link /docs/v2/components/#avatar-list Avatar Component Docs}
|
||||||
*/
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: 'ion-avatar'
|
selector: 'ion-avatar'
|
||||||
|
@ -263,6 +263,7 @@ export class Button extends Ion {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @private */
|
||||||
ngAfterContentInit() {
|
ngAfterContentInit() {
|
||||||
this._init = true;
|
this._init = true;
|
||||||
this._assignCss(true);
|
this._assignCss(true);
|
||||||
|
@ -102,6 +102,23 @@ export class FabButton extends Ion {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @name FabList
|
* @name FabList
|
||||||
|
* @description
|
||||||
|
* `ion-fab-list` is a container for multiple FAB buttons. They are components of `ion-fab` and allow you to specificy the buttons position, left, right, top, bottom.
|
||||||
|
* @usage
|
||||||
|
*
|
||||||
|
* ```html
|
||||||
|
* <ion-fab bottom right >
|
||||||
|
* <button ion-fab>Share</button>
|
||||||
|
* <ion-fab-list side="top">
|
||||||
|
* <button ion-fab>Facebook</button>
|
||||||
|
* <button ion-fab>Twitter</button>
|
||||||
|
* <button ion-fab>Youtube</button>
|
||||||
|
* </ion-fab-list>
|
||||||
|
* <ion-fab-list side="left">
|
||||||
|
* <button ion-fab>Vimeo</button>
|
||||||
|
* </ion-fab-list>
|
||||||
|
* </ion-fab>
|
||||||
|
* ```
|
||||||
* @module ionic
|
* @module ionic
|
||||||
*
|
*
|
||||||
* @demo /docs/v2/demos/fab/
|
* @demo /docs/v2/demos/fab/
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Directive } from '@angular/core';
|
import { Directive } from '@angular/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @private
|
||||||
* @name Grid
|
* @name Grid
|
||||||
* @module ionic
|
* @module ionic
|
||||||
* @description
|
* @description
|
||||||
@ -13,6 +14,7 @@ export class Grid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @private
|
||||||
* @name Row
|
* @name Row
|
||||||
* @module ionic
|
* @module ionic
|
||||||
* @description
|
* @description
|
||||||
@ -25,6 +27,7 @@ export class Row {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @private
|
||||||
* @name Column
|
* @name Column
|
||||||
* @module ionic
|
* @module ionic
|
||||||
* @description
|
* @description
|
||||||
|
@ -122,6 +122,9 @@ export class Config {
|
|||||||
*/
|
*/
|
||||||
platform: Platform;
|
platform: Platform;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
init(config: any, queryParams: QueryParams, platform: Platform) {
|
init(config: any, queryParams: QueryParams, platform: Platform) {
|
||||||
this._s = config && isObject(config) && !isArray(config) ? config : {};
|
this._s = config && isObject(config) && !isArray(config) ? config : {};
|
||||||
this._qp = queryParams;
|
this._qp = queryParams;
|
||||||
@ -379,8 +382,14 @@ export class Config {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
export const ConfigToken = new OpaqueToken('USERCONFIG');
|
export const ConfigToken = new OpaqueToken('USERCONFIG');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
export function setupConfig(userConfig: any, queryParams: QueryParams, platform: Platform): Config {
|
export function setupConfig(userConfig: any, queryParams: QueryParams, platform: Platform): Config {
|
||||||
const config = new Config();
|
const config = new Config();
|
||||||
config.init(userConfig, queryParams, platform);
|
config.init(userConfig, queryParams, platform);
|
||||||
|
Reference in New Issue
Block a user