I’m building a (demo) app where I’d need to edit direction. In my domain it is stored simply as degrees, but I’m bit stuck on figuring out how should I let users adjust it in the UI Currently I have IntegerField (with ± buttons enabled), but using that, espcially on mobile devices feels quite clumbsy. In the use case a rought direction would be enough.
Any good ideas? A custom UI widget idea (or integrating some JS widget) would be fine as well. In the form there wouldn’t be too much space for the widget.
My curent (bad ) ideas:
- Slider. No decent buillt in available, but Directory has couple. Visually that don’t really help as it is still just a number, would be just a faster method to pick a number (and visual min/max values).
- Migrate/re-implement something like RotaryKnob for version 24.
- Popover based custom field with that opens a bit bigger arrow/compass symbol and click listener to reset the direction (from the center).