mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
refactor(overlays): [title] -> [header]
This commit is contained in:
@ -71,8 +71,8 @@ For example, to change the `title` and `subTitle` of the overlay, pass it into `
|
||||
```javascript
|
||||
var customSelect = document.getElementById('customSelect');
|
||||
customSelect.interfaceOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings'
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings'
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -253,8 +253,8 @@
|
||||
|
||||
var customAlertSelect = document.getElementById('customAlertSelect');
|
||||
var customAlertOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings',
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings',
|
||||
message: '$1.00 per topping',
|
||||
translucent: true
|
||||
};
|
||||
@ -262,16 +262,16 @@
|
||||
|
||||
var customPopoverSelect = document.getElementById('customPopoverSelect');
|
||||
var customPopoverOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings',
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings',
|
||||
message: '$1.50 charge for every topping'
|
||||
};
|
||||
customPopoverSelect.interfaceOptions = customPopoverOptions;
|
||||
|
||||
var customActionSheetSelect = document.getElementById('customActionSheetSelect');
|
||||
var customActionSheetOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings',
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings',
|
||||
message: '$1.50 charge for every topping'
|
||||
};
|
||||
customActionSheetSelect.interfaceOptions = customActionSheetOptions;
|
||||
|
@ -253,8 +253,8 @@
|
||||
|
||||
var customAlertSelect = document.getElementById('customAlertSelect');
|
||||
var customAlertOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings',
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings',
|
||||
message: '$1.00 per topping',
|
||||
translucent: true
|
||||
};
|
||||
@ -262,16 +262,16 @@
|
||||
|
||||
var customPopoverSelect = document.getElementById('customPopoverSelect');
|
||||
var customPopoverOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings',
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings',
|
||||
message: '$1.50 charge for every topping'
|
||||
};
|
||||
customPopoverSelect.interfaceOptions = customAlertOptions;
|
||||
|
||||
var customActionSheetSelect = document.getElementById('customActionSheetSelect');
|
||||
var customActionSheetOptions = {
|
||||
title: 'Pizza Toppings',
|
||||
subTitle: 'Select your toppings',
|
||||
header: 'Pizza Toppings',
|
||||
subHeader: 'Select your toppings',
|
||||
message: '$1.50 charge for every topping'
|
||||
};
|
||||
customActionSheetSelect.interfaceOptions = customAlertOptions;
|
||||
|
Reference in New Issue
Block a user