chore(): update componentd.d.ts

This commit is contained in:
Manu Mtz.-Almeida
2018-09-25 01:38:44 +02:00
parent cd4628da4d
commit f6678c4e20
6 changed files with 20 additions and 19 deletions

View File

@ -1,9 +1,10 @@
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
/* tslint:disable */
import '@stencil/core';
import 'ionicons';

View File

@ -14,14 +14,14 @@ it('action-sheet: basic', async () => {
let compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
const backdrop = await page.find('ion-backdrop');
await backdrop.click();
await actionSheet.callMethod('dismiss');
await actionSheet.callMethod('onDidDismiss');
await actionSheet.waitForNotVisible();
compare = await page.compareScreenshot(`dismissed`);
expect(compare).toMatchScreenshot();
actionSheet = await page.find('ion-action-sheet');
expect(actionSheet).toBe(null);
});

View File

@ -10,13 +10,13 @@ To change what is displayed in the back button, use the `text` and `icon` proper
## Properties
| Property | Attribute | Description | Type |
| ------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `color` | `color` | The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). | `Color` |
| `defaultHref` | `default-href` | The url to navigate back to by default when there is no history. | `string` |
| `icon` | `icon` | The icon name to use for the back button. | `string` |
| `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `Mode` |
| `text` | `text` | The text to display in the back button. | `string` |
| Property | Attribute | Description | Type |
| ------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| `color` | `color` | The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). | `Color` |
| `defaultHref` | `default-href` | The url to navigate back to by default when there is no history. | `string` |
| `icon` | `icon` | The icon name to use for the back button. | `string`, `null` |
| `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `Mode` |
| `text` | `text` | The text to display in the back button. | `string`, `null` |
## CSS Custom Properties

View File

@ -41,7 +41,7 @@ Unlike RouterOutlet, Nav is not tied to a particular router. Meaning that if we
| `pop` | Call to navigate back from a current component. Similar to push(), you can also pass navigation options. |
| `popTo` | Pop to a specific index in the navigation stack |
| `popToRoot` | Navigate back to the root of the stack, no matter how far back that is. |
| `push` | Push a new component onto the current navigation stack. Pass any additional information along as an object. This additional information is accessible through NavParams |
| `push` | Push a new component onto the current navigation stack. Pass any additional information along as an object. This additional information is accessible through NavParams |
| `removeIndex` | Removes a page from the nav stack at the specified index. |
| `setPages` | Set the views of the current navigation stack and navigate to the last view. By default animations are disabled, but they can be enabled by passing options to the navigation controller.You can also pass any navigation params to the individual pages in the array. |
| `setRoot` | Set the root for the current navigation stack. |

View File

@ -18,8 +18,8 @@ Router is a component that can take a component, and render it when the Browser
## Events
| Event | Description |
| --------------------- | ------------------------------------------------------------------ |
| Event | Description |
| --------------------- | ------------------------------------------------------------------- |
| `ionRouteDataChanged` | Used internally by `ion-router` to know when this route did change. |

View File

@ -20,9 +20,9 @@ If you're using Angular, please see [ion-router-outlet](../router-outlet) instea
## Properties
| Property | Attribute | Description | Type |
| --------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `root` | `root` | By default `ion-router` will match the routes at the root path ("/"). That can be changed when | `string` |
| Property | Attribute | Description | Type |
| --------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `root` | `root` | By default `ion-router` will match the routes at the root path ("/"). That can be changed when | `string` |
| `useHash` | `use-hash` | The router can work in two "modes": - With hash: `/index.html#/path/to/page` - Without hash: `/path/to/page` Using one or another might depend in the requirements of your app and/or where it's deployed. Usually "hash-less" navigation works better for SEO and it's more user friendly too, but it might requires additional server-side configuration in order to properly work. On the otherside hash-navigation is much easier to deploy, it even works over the file protocol. By default, this property is `true`, change to `false` to allow hash-less URLs. | `boolean` |