mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
docs(menu, split-pane): update contentId docs to be more clear (#23008)
This commit is contained in:
8
core/src/components.d.ts
vendored
8
core/src/components.d.ts
vendored
@ -1225,7 +1225,7 @@ export namespace Components {
|
||||
*/
|
||||
"close": (animated?: boolean) => Promise<boolean>;
|
||||
/**
|
||||
* The content's id the menu should use.
|
||||
* The `id` of the main content. When using a router this is typically `ion-router-outlet`. When not using a router, this is typically your main view's `ion-content`. This is not the id of the `ion-content` inside of your `ion-menu`.
|
||||
*/
|
||||
"contentId"?: string;
|
||||
/**
|
||||
@ -2303,7 +2303,7 @@ export namespace Components {
|
||||
}
|
||||
interface IonSplitPane {
|
||||
/**
|
||||
* The content `id` of the split-pane's main content.
|
||||
* The `id` of the main content. When using a router this is typically `ion-router-outlet`. When not using a router, this is typically your main view's `ion-content`. This is not the id of the `ion-content` inside of your `ion-menu`.
|
||||
*/
|
||||
"contentId"?: string;
|
||||
/**
|
||||
@ -4568,7 +4568,7 @@ declare namespace LocalJSX {
|
||||
}
|
||||
interface IonMenu {
|
||||
/**
|
||||
* The content's id the menu should use.
|
||||
* The `id` of the main content. When using a router this is typically `ion-router-outlet`. When not using a router, this is typically your main view's `ion-content`. This is not the id of the `ion-content` inside of your `ion-menu`.
|
||||
*/
|
||||
"contentId"?: string;
|
||||
/**
|
||||
@ -5625,7 +5625,7 @@ declare namespace LocalJSX {
|
||||
}
|
||||
interface IonSplitPane {
|
||||
/**
|
||||
* The content `id` of the split-pane's main content.
|
||||
* The `id` of the main content. When using a router this is typically `ion-router-outlet`. When not using a router, this is typically your main view's `ion-content`. This is not the id of the `ion-content` inside of your `ion-menu`.
|
||||
*/
|
||||
"contentId"?: string;
|
||||
/**
|
||||
|
@ -46,7 +46,11 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
@State() isEndSide = false;
|
||||
|
||||
/**
|
||||
* The content's id the menu should use.
|
||||
* The `id` of the main content. When using
|
||||
* a router this is typically `ion-router-outlet`.
|
||||
* When not using a router, this is typically
|
||||
* your main view's `ion-content`. This is not the
|
||||
* id of the `ion-content` inside of your `ion-menu`.
|
||||
*/
|
||||
@Prop({ reflect: true }) contentId?: string;
|
||||
|
||||
|
@ -478,8 +478,8 @@ export default defineComponent({
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------- | ----------- |
|
||||
| `contentId` | `content-id` | The content's id the menu should use. | `string \| undefined` | `undefined` |
|
||||
| -------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------- |
|
||||
| `contentId` | `content-id` | The `id` of the main content. When using a router this is typically `ion-router-outlet`. When not using a router, this is typically your main view's `ion-content`. This is not the id of the `ion-content` inside of your `ion-menu`. | `string \| undefined` | `undefined` |
|
||||
| `disabled` | `disabled` | If `true`, the menu is disabled. | `boolean` | `false` |
|
||||
| `maxEdgeStart` | `max-edge-start` | The edge threshold for dragging the menu open. If a drag/swipe happens over this value, the menu is not triggered. | `number` | `50` |
|
||||
| `menuId` | `menu-id` | An id for the menu. | `string \| undefined` | `undefined` |
|
||||
|
@ -188,8 +188,8 @@ export default defineComponent({
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| ----------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------- |
|
||||
| `contentId` | `content-id` | The content `id` of the split-pane's main content. | `string \| undefined` | `undefined` |
|
||||
| ----------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------- |
|
||||
| `contentId` | `content-id` | The `id` of the main content. When using a router this is typically `ion-router-outlet`. When not using a router, this is typically your main view's `ion-content`. This is not the id of the `ion-content` inside of your `ion-menu`. | `string \| undefined` | `undefined` |
|
||||
| `disabled` | `disabled` | If `true`, the split pane will be hidden. | `boolean` | `false` |
|
||||
| `when` | `when` | When the split-pane should be shown. Can be a CSS media query expression, or a shortcut expression. Can also be a boolean expression. | `boolean \| string` | `QUERY['lg']` |
|
||||
|
||||
|
@ -29,7 +29,11 @@ export class SplitPane implements ComponentInterface {
|
||||
@State() visible = false;
|
||||
|
||||
/**
|
||||
* The content `id` of the split-pane's main content.
|
||||
* The `id` of the main content. When using
|
||||
* a router this is typically `ion-router-outlet`.
|
||||
* When not using a router, this is typically
|
||||
* your main view's `ion-content`. This is not the
|
||||
* id of the `ion-content` inside of your `ion-menu`.
|
||||
*/
|
||||
@Prop({ reflect: true }) contentId?: string;
|
||||
|
||||
|
Reference in New Issue
Block a user