mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
docs(): update usage and examples
This commit is contained in:
@ -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 {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user