mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 06:22:45 +08:00
chore(header): finalize collapse API (#19276)
* make requested changes * add e2e * add RTL support * fix typo * add info on how to make collapsable title * add usage examples * fix typo * fix another typo * fix typos * update usage * fix alpha order * update api * add class to collapse buttons * merge * update * change back to collapse * remove platform specific class * update docs * run build * update api again * run build
This commit is contained in:
12
core/src/components.d.ts
vendored
12
core/src/components.d.ts
vendored
@ -391,7 +391,7 @@ export namespace Components {
|
||||
}
|
||||
interface IonButtons {
|
||||
/**
|
||||
* If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in `ios` mode with `collapse` set to `true` on `ion-header`
|
||||
* If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in `ios` mode with `collapse` set to `true` on `ion-header`. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
|
||||
*/
|
||||
'collapse': boolean;
|
||||
}
|
||||
@ -871,9 +871,9 @@ export namespace Components {
|
||||
}
|
||||
interface IonHeader {
|
||||
/**
|
||||
* If `true`, the header will collapse on scroll of the content. Only applies in `ios` mode.
|
||||
* Describes the scroll effect that will be applied to the header `condense` only applies in iOS mode. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
|
||||
*/
|
||||
'collapse': boolean;
|
||||
'collapse'?: 'condense';
|
||||
/**
|
||||
* The mode determines which platform styles to use.
|
||||
*/
|
||||
@ -3898,7 +3898,7 @@ declare namespace LocalJSX {
|
||||
}
|
||||
interface IonButtons extends JSXBase.HTMLAttributes<HTMLIonButtonsElement> {
|
||||
/**
|
||||
* If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in `ios` mode with `collapse` set to `true` on `ion-header`
|
||||
* If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in `ios` mode with `collapse` set to `true` on `ion-header`. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
|
||||
*/
|
||||
'collapse'?: boolean;
|
||||
}
|
||||
@ -4390,9 +4390,9 @@ declare namespace LocalJSX {
|
||||
}
|
||||
interface IonHeader extends JSXBase.HTMLAttributes<HTMLIonHeaderElement> {
|
||||
/**
|
||||
* If `true`, the header will collapse on scroll of the content. Only applies in `ios` mode.
|
||||
* Describes the scroll effect that will be applied to the header `condense` only applies in iOS mode. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
|
||||
*/
|
||||
'collapse'?: boolean;
|
||||
'collapse'?: 'condense';
|
||||
/**
|
||||
* The mode determines which platform styles to use.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user