Skip to content

issue(item-reorder): Should be able to specify a side #11637

@dylanvdmerwe

Description

@dylanvdmerwe

Ionic version: (check one with "x")
[x] 2.x
[x] 3.x

I'm submitting a ... (check one with "x")
[x] feature request

Note that I don't think this is a feature request, because hard-coded logic like this shouldn't be there.

Current behavior:
You should be able to specify the side that you want an ion-reorder to appear. Currently it is hard-coded to be on the RHS. Even moving the reorder icon does not work as the logic is hard coded: https://github.com/driftyco/ionic/blob/master/src/components/item/item-reorder-gesture.ts#L137

Expected behavior:
Specify a side that the ion-reorder icon should be, and have the logic work when dragging an icon on the specified side.

See here for an unfinished PR: #9250

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

global packages:

    @ionic/cli-utils : 1.0.0
    Cordova CLI      : 7.0.0
    Ionic CLI        : 3.0.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.0.0
    @ionic/cli-plugin-ionic-angular : 1.0.0
    Ionic Framework                 : ionic-angular 3.1.1

System:

    Node       : v6.9.5
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002
    ios-deploy : 1.9.0
    ios-sim    : 5.0.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions