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

@ -11,12 +11,12 @@ 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` |
| `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` |
| `text` | `text` | The text to display in the back button. | `string`, `null` |
## CSS Custom Properties

View File

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

View File

@ -21,7 +21,7 @@ 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` |
| `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` |