feat(item-sliding): add open method (#17964)

resolves #17899
This commit is contained in:
shreeshbhat
2019-05-07 11:43:19 -04:00
committed by Liam DeBeasi
parent ddb8ef82f0
commit f912206af8
7 changed files with 108 additions and 1 deletions

View File

@ -1983,6 +1983,10 @@ export namespace Components {
* Get the ratio of the open amount of the item compared to the width of the options. If the number returned is positive, then the options on the right side are open. If the number returned is negative, then the options on the left side are open. If the absolute value of the number is greater than 1, the item is open more than the width of the options.
*/
'getSlidingRatio': () => Promise<number>;
/**
* Open the sliding item.
*/
'open': (side: string | undefined) => Promise<void>;
}
interface IonItemSlidingAttributes extends StencilHTMLAttributes {
/**