octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(item-sliding): readme replace side values
in description sides "left" and "right" are now "start" and "end". Add a link to `ion-item-options` where the exact effect of those values is described.
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
committed by
Manu MA
gitea-unlock(16/)
parent
3df6e94650
commit
b1778102fc
octicon-diff(16/tw-mr-1) 1 changed files with 1 additions and 1 deletions
@@ -23,7 +23,7 @@ A Sliding item is a component that contains an item that can be dragged to revea
|
||||
|
||||
### Direction
|
||||
|
||||
By default, the options are revealed when the sliding item is swiped from right to left, so the buttons are placed on the right side. It's also possible to reveal them from the right side by setting the `side` attribute on the `ion-item-options` element. Up to two `ion-item-options` can be used at the same time in order to reveal two different sets of options depending on the swiping direction.
|
||||
By default, the buttons are placed on the `"end"` side. This means that options are revealed when the sliding item is swiped from end to start, i.e. from right to left in LTR, but from left to right in RTL. To place them on the opposite side, so that they are revealed when swiping to the opposite direction, set the `side` attribute to `"start"` on the `ion-item-options` element. Refer to [`ion-item-options` docs](https://github.com/ionic-team/ionic/blob/master/core/src/components/item-options/readme.md). Up to two `ion-item-options` can be used at the same time in order to reveal two different sets of options depending on the swiping direction.
|
||||
|
||||
```html
|
||||
<ion-item-options side="end">
|
||||
|
||||
Reference in New Issue
Block a user