Skip to content

feat(item-reorder): add side support - #11642

Merged
manucorporat merged 14 commits into
ionic-team:masterfrom
AmitMY:item-reorder
Jun 15, 2017
Merged

manucorporat merged 14 commits into
ionic-team:masterfrom
AmitMY:item-reorder

Conversation

@AmitMY

@AmitMY AmitMY commented May 12, 2017 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

A user needs this feature

Changes proposed in this pull request:

  • add [side] to reorder
  • change structure of ion-item

Of course, this is RTL supported.

Ionic Version: 3.x

Fixes: #11637

Comment thread src/components/item/item-reorder.ts Outdated
'[class.reorder-side-left]': 'side === "left"',
'[class.reorder-side-right]': 'side === "right"',
'[class.reorder-side-start]': 'side === "start"',
'[class.reorder-side-end]': 'side === "end"'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manucorporat what would be the correct way here to add the classes? Should I can just use [ngClass] with a string.

AmitMY added 2 commits June 8, 2017 22:40
# Conflicts:
#	src/components/item/item-reorder.scss
#	src/components/item/test/reorder/pages/root-page/root-page.html
@brandyscarney brandyscarney removed the rtl label Jun 9, 2017
Comment thread src/components/item/item-reorder.scss Outdated
}

.reorder-side-start ion-reorder {
@include transform(translate3d(-160%, 0, 0));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other to prevent DRY, could we use a scss variable like $reorder-initial-transform ?

Comment thread src/components/item/item-reorder.ts Outdated
host: {
'[class.reorder-enabled]': '_enableReorder',
'[class.reorder-visible]': '_visibleReorder',
'[class.reorder-side-start]': 'side === "start"'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change string comparison to boolean

@manucorporat
manucorporat merged commit 63f728f into ionic-team:master Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants