mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
fix(all): docs for all missing props
This commit is contained in:

committed by
Manu MA

parent
53305741a0
commit
a72fced6fe
@ -9,14 +9,14 @@ ShowWhen can watch for platform changes, mode changes, css media queries, and de
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type |
|
||||
| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- |
|
||||
| `mediaQuery` | `media-query` | If the current media query matches this value, the element will show. | `string` |
|
||||
| `modes` | `modes` | If the current platform matches the given value, the element will show. Accepts a comma separated list of modes to match against. | `string` |
|
||||
| `or` | `or` | If false, and two or more conditions are set, the element will show when all are true. If true, and two or more conditions are set, the element will show when at least one is true. | `boolean` |
|
||||
| `orientation` | `orientation` | If the current orientation matches this value, the element will show. | `string` |
|
||||
| `platform` | `platform` | If the current platform matches the given value, the element will show. Accepts a comma separated list of platform to match against. | `string` |
|
||||
| `size` | `size` | If the current screen width matches the given size, the element will show. Uses the build in sizes of xs, sm, md, lg, xl. | `string` |
|
||||
| Property | Attribute | Description | Type |
|
||||
| ------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
|
||||
| `mediaQuery` | `media-query` | If the current media query matches this value, the element will show. | `string` |
|
||||
| `modes` | `modes` | If the current platform matches the given value, the element will show. Accepts a comma separated list of modes to match against. | `string` |
|
||||
| `or` | `or` | If `false`, and two or more conditions are set, the element will show when all are true. If `true`, and two or more conditions are set, the element will show when at least one is true. | `boolean` |
|
||||
| `orientation` | `orientation` | If the current orientation matches this value, the element will show. | `string` |
|
||||
| `platform` | `platform` | If the current platform matches the given value, the element will show. Accepts a comma separated list of platform to match against. | `string` |
|
||||
| `size` | `size` | If the current screen width matches the given size, the element will show. Uses the build in sizes of xs, sm, md, lg, xl. | `string` |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
@ -44,8 +44,8 @@ export class ShowWhen implements ComponentInterface, DisplayWhen {
|
||||
@Prop() platform?: string;
|
||||
|
||||
/**
|
||||
* If false, and two or more conditions are set, the element will show when all are true.
|
||||
* If true, and two or more conditions are set, the element will show when at least one is true.
|
||||
* If `false`, and two or more conditions are set, the element will show when all are true.
|
||||
* If `true`, and two or more conditions are set, the element will show when at least one is true.
|
||||
*/
|
||||
@Prop() or = false;
|
||||
|
||||
|
Reference in New Issue
Block a user