mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(ionicConfig): added navBar config
This commit is contained in:
55
js/angular/service/ionicConfig.js
vendored
55
js/angular/service/ionicConfig.js
vendored
@@ -142,6 +142,61 @@
|
||||
* @returns {integer}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $ionicConfigProvider#navBar.alignTitle
|
||||
* @description Which side of the navBar to align the title. Default `center`.
|
||||
*
|
||||
* @param {string} which side of the navBar to align the title.
|
||||
*
|
||||
* * `platform`: Dynamically choose the correct title style depending on the platform
|
||||
* the app is running from. If the platform is `ios`, it will default to `center`.
|
||||
* If the platform is `android`, it will default to `left`. If the platform is not
|
||||
* `ios` or `android`, it will default to `center`.
|
||||
*
|
||||
* * `left`: Left align the title in the navBar
|
||||
* * `center`: Center align the title in the navBar
|
||||
* * `right`: Right align the title in the navBar.
|
||||
*
|
||||
* @returns {string} value
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $ionicConfigProvider#navBar.positionPrimaryButtons
|
||||
* @description Which side of the navBar to align the primary navBar buttons. Default `left`.
|
||||
*
|
||||
* @param {string} which side of the navBar to align the primary navBar buttons.
|
||||
*
|
||||
* * `platform`: Dynamically choose the correct title style depending on the platform
|
||||
* the app is running from. If the platform is `ios`, it will default to `left`.
|
||||
* If the platform is `android`, it will default to `right`. If the platform is not
|
||||
* `ios` or `android`, it will default to `left`.
|
||||
*
|
||||
* * `left`: Left align the primary navBar buttons in the navBar
|
||||
* * `right`: Right align the primary navBar buttons in the navBar.
|
||||
*
|
||||
* @returns {string} value
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $ionicConfigProvider#navBar.positionSecondaryButtons
|
||||
* @description Which side of the navBar to align the secondary navBar buttons. Default `right`.
|
||||
*
|
||||
* @param {string} which side of the navBar to align the secondary navBar buttons.
|
||||
*
|
||||
* * `platform`: Dynamically choose the correct title style depending on the platform
|
||||
* the app is running from. If the platform is `ios`, it will default to `right`.
|
||||
* If the platform is `android`, it will default to `right`. If the platform is not
|
||||
* `ios` or `android`, it will default to `right`.
|
||||
*
|
||||
* * `left`: Left align the secondary navBar buttons in the navBar
|
||||
* * `right`: Right align the secondary navBar buttons in the navBar.
|
||||
*
|
||||
* @returns {string} value
|
||||
*/
|
||||
|
||||
IonicModule
|
||||
.provider('$ionicConfig', function() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user