ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat: vertical orientation for ion-slider

Open snr-lab opened this issue 2 years ago • 10 comments

Prerequisites

Ionic Framework Version

  • [X] v4.x
  • [X] v5.x
  • [X] v6.x

Current Behavior

The Range Slider can be used only in Horizontal orientation. I tried to rotate using transform property to make it vertical. But the touch movement is handled only in x-axis.

Expected Behavior

Should be able to use Range Slider in vertical orientation.

Steps to Reproduce

NA

Code Reproduction URL

No response

Ionic Info

$ ionic info [WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'

   Require stack:
   - C:\Users\rahulkundu\AppData\Roaming\nvm\v14.17.0\node_modules\@ionic\cli\lib\project\index.js       
   - C:\Users\rahulkundu\AppData\Roaming\nvm\v14.17.0\node_modules\@ionic\cli\lib\index.js
   - C:\Users\rahulkundu\AppData\Roaming\nvm\v14.17.0\node_modules\@ionic\cli\index.js
   - C:\Users\rahulkundu\AppData\Roaming\nvm\v14.17.0\node_modules\@ionic\cli\bin\ionic

Ionic:

Ionic CLI : 6.18.1 (C:\Users\rahulkundu\AppData\Roaming\nvm\v14.17.0\node_modules@ionic\cli)
Ionic Framework : @ionic/react 6.0.8

Capacitor:

Capacitor CLI : 3.4.1 @capacitor/android : 3.4.1 @capacitor/core : 3.4.1 @capacitor/ios : not installed

Utility:

cordova-res : not installed globally native-run : 1.5.0

System:

NodeJS : v14.17.0 (C:\Program Files\nodejs\node.exe) npm : 6.14.13 OS : Windows 10

Additional Information

Vertical Range slider is very useful in many cases. I think it will be a great addition to the framework. I am a Ract developer and I will be happy to contribute.

snr-lab avatar Mar 05 '22 08:03 snr-lab

Thanks for the issue. Could you please describe your use case for this feature? In particular:

  • What is the problem you are running into?
  • What alternatives have you tried?

liamdebeasi avatar Mar 07 '22 14:03 liamdebeasi

I have an existing app for the control panel / human-machine interface. User can build their own panel according to the need. In many cases, the user wants to keep multiple range sliders (4-5) together to utilize the space efficiently. The vertical range slider is much more appropriate for this scenario. I am redesigning the app and the UI framework I am using is Ionic. The existing app has this functionality. To avoid breaking user space I need the vertical slider.

As an alternative first I tried to rotate the Ionic Range slider using the transform CSS property. But the touch only works x-direction. Second I tried to add third-party sliders, but could not find a good one that works with a negative value and decimal steps.

Ionic is a great UI framework for mobile, I think a vertical range slider should be available. There are lots of common use cases e.g. volume buttons or equalizers.

snr-lab avatar Mar 07 '22 14:03 snr-lab

Thanks! I think this is something that would be good for Ionic to support.

liamdebeasi avatar Mar 07 '22 14:03 liamdebeasi

Thank you very much for your support.

snr-lab avatar Mar 07 '22 15:03 snr-lab

Hi, Any tentative plan to implement this feature?

snr-lab avatar Apr 27 '22 04:04 snr-lab

Thanks! I think this is something that would be good for Ionic to support.

hey @liamdebeasi . can u please give an estimate till when this will be implemented?

vivek-gemini avatar May 06 '22 13:05 vivek-gemini

We do not provide time estimates for future feature work. However, we will post a comment on this thread when the feature has been implemented.

liamdebeasi avatar May 09 '22 12:05 liamdebeasi

I would also like to make this request. Please add an option to have the slider vertical. @liamdebeasi

rcowling avatar Jul 11 '22 15:07 rcowling

We have the same issue Please make it Vertical as well

rameez-arain-dm avatar Aug 29 '22 07:08 rameez-arain-dm

@liamdebeasi It will be great if the Ionic team takes this feature with higher priority. It is almost 6 months since the feature was requested. We are planning to release our app as soon as possible. The vertical slider is one of the very few areas blocking the release.

snr-lab avatar Aug 29 '22 08:08 snr-lab

For now you can use angular slider it's working good.

rameez-arain-dm avatar Oct 15 '22 11:10 rameez-arain-dm

would like this capability for vertical ion-range as well please!

KirstenStake avatar Apr 26 '23 07:04 KirstenStake