HealthCatalyst / Fabric.Cashmere

Health Catalyst’s comprehensive design system.
http://cashmere.healthcatalyst.net
Apache License 2.0
66 stars 76 forks source link

Picklist: Add custom ordering functionality #287

Closed JonSams closed 3 years ago

JonSams commented 6 years ago

Hi I have a use case where I need a picklist that is more generic in nature that can perform simple tasks like selecting items and re-ordering them similar to this PrimeNG component. https://www.primefaces.org/primeng/#/picklist. Specifically I want to use this for our Leading Wisely product, but do do so I need at a minimum to have a toggle added that could disable auto-sorting on the target list, but ideally buttons could be added to the target list that would allow them to be sorted (like PrimeNG component). Also if a toggle could be added to disable displaying the search boxes that would be great, but not necessary.

corykon commented 6 years ago

@JonSams Here are some notes on how I'd approach building this out. For sure these notes are incomplete/imperfect, but hopefully a good starting place. Reach out anytime with questions.

image

picklist-pane.model.ts

picklist.model.ts

picklist.component.ts

picklist-filter-local.servce.ts

picklist-state.service.ts

picklist-action.service.ts

picklist-pane.component.html

picklist-pane.component.ts

andrew-frueh commented 4 years ago

Capturing three other picklist related issues in this one and bumping it onto the priority list

481 #618 #863

andrew-frueh commented 3 years ago

closed in #1359