octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(overlays): [title] -> [header]
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 40 changed files with 290 additions and 227 deletions
@@ -60,15 +60,15 @@ export class ActionSheet implements OverlayInterface {
|
||||
*/
|
||||
@Prop() enableBackdropDismiss = true;
|
||||
|
||||
/**
|
||||
* Subtitle for the action sheet.
|
||||
*/
|
||||
@Prop() subTitle: string;
|
||||
|
||||
/**
|
||||
* Title for the action sheet.
|
||||
*/
|
||||
@Prop() title: string;
|
||||
@Prop() header: string;
|
||||
|
||||
/**
|
||||
* Subtitle for the action sheet.
|
||||
*/
|
||||
@Prop() subHeader: string;
|
||||
|
||||
/**
|
||||
* If true, the action sheet will be translucent. Defaults to `false`.
|
||||
@@ -231,11 +231,11 @@ export class ActionSheet implements OverlayInterface {
|
||||
<div class='action-sheet-wrapper' role='dialog'>
|
||||
<div class='action-sheet-container'>
|
||||
<div class='action-sheet-group'>
|
||||
{this.title
|
||||
{this.header
|
||||
? <div class='action-sheet-title'>
|
||||
{this.title}
|
||||
{this.subTitle
|
||||
? <div class='action-sheet-sub-title'>{this.subTitle}</div>
|
||||
{this.header}
|
||||
{this.subHeader
|
||||
? <div class='action-sheet-sub-title'>{this.subHeader}</div>
|
||||
: null}
|
||||
</div>
|
||||
: null}
|
||||
@@ -287,8 +287,8 @@ function buttonClass(button: ActionSheetButton): CssClassMap {
|
||||
}
|
||||
|
||||
export interface ActionSheetOptions {
|
||||
title?: string;
|
||||
subTitle?: string;
|
||||
header?: string;
|
||||
subHeader?: string;
|
||||
cssClass?: string;
|
||||
buttons?: (ActionSheetButton | string)[];
|
||||
enableBackdropDismiss?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user