mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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()
|
||||
export class App {
|
||||
|
@ -4,6 +4,9 @@ import { Directive } from '@angular/core';
|
||||
* @name Avatar
|
||||
* @module ionic
|
||||
* @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({
|
||||
selector: 'ion-avatar'
|
||||
|
@ -263,6 +263,7 @@ export class Button extends Ion {
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
ngAfterContentInit() {
|
||||
this._init = true;
|
||||
this._assignCss(true);
|
||||
|
@ -102,6 +102,23 @@ export class FabButton extends Ion {
|
||||
|
||||
/**
|
||||
* @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
|
||||
*
|
||||
* @demo /docs/v2/demos/fab/
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Directive } from '@angular/core';
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @name Grid
|
||||
* @module ionic
|
||||
* @description
|
||||
@ -13,6 +14,7 @@ export class Grid {
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @name Row
|
||||
* @module ionic
|
||||
* @description
|
||||
@ -25,6 +27,7 @@ export class Row {
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @name Column
|
||||
* @module ionic
|
||||
* @description
|
||||
|
@ -122,6 +122,9 @@ export class Config {
|
||||
*/
|
||||
platform: Platform;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
init(config: any, queryParams: QueryParams, platform: Platform) {
|
||||
this._s = config && isObject(config) && !isArray(config) ? config : {};
|
||||
this._qp = queryParams;
|
||||
@ -379,8 +382,14 @@ export class Config {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export const ConfigToken = new OpaqueToken('USERCONFIG');
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function setupConfig(userConfig: any, queryParams: QueryParams, platform: Platform): Config {
|
||||
const config = new Config();
|
||||
config.init(userConfig, queryParams, platform);
|
||||
|
Reference in New Issue
Block a user