docs(): update usage and examples

This commit is contained in:
mhartington
2018-05-30 16:51:54 -04:00
parent 62755f3824
commit 89a7d169e9
31 changed files with 693 additions and 444 deletions

View File

@ -1,7 +1,13 @@
import { Component, Element, Event, EventEmitter, Method, Prop } from '@stencil/core';
import {
Component,
Element,
Event,
EventEmitter,
Method,
Prop
} from '@stencil/core';
import { Side, isEndSide } from '../../utils/helpers';
@Component({
tag: 'ion-item-options',
styleUrls: {
@ -15,13 +21,12 @@ import { Side, isEndSide } from '../../utils/helpers';
export class ItemOptions {
@Element() el!: HTMLElement;
@Prop({ context: 'window' }) win!: Window;
@Prop({ context: 'window' })
win!: Window;
/**
* The side the option button should be on.
* Possible values: `"start"` and `"end"`.
* Defaults to `"end"`.
* If you have multiple `ion-item-options`, a side must be provided for each.
* The side the option button should be on. Possible values: `"start"` and `"end"`. Defaults to `"end"`. If you have multiple `ion-item-options`, a side must be provided for each.
*
*/
@Prop() side: Side = 'end';
@ -53,5 +58,4 @@ export class ItemOptions {
}
};
}
}