Comments (5)
Hi,
Why do you want to clear the content of a date cell? Usually, the date is needed to continue the process in which the date is selected. Clearing the date would not be really useful I think :/...
The only reason to clear a text field is that the user does not need to delete all characters before he can type a new text. An empty string in the text field usually also means, that the process where the text of the text field is used, cannot be continued (like when adding a folder. A folder without a name is not useful).
from rmdateselectionviewcontroller.
Hi,
In my forms app though with many and various input text fields, users can fill out the details in any order they wish as well as skip (leave empty) fields that might not yet be relevant at that time. It's like filling out an application form, and if the user "accidentally" inputs a date/time field that she didn't mean to or was mistaken about, it would be beneficial to them to have a way to clear it.
Most intuitively, people will search the path that lead them to input that value with a way to also clear it. Hence they tap on the cell, get the pop-up to only realize there is no way back.
I honestly did try to make the change myself, but only broke things so terribly that I'm embarrassed to admit my lack of AutoLayout skills. :/
A less then ideal fix to this issue that I've experimented with was enable these selective date/time cells to have a "swipe to clear" feature. Essentially using the "swipe to delete" feature to clear the text. But it's not intuitive and I'm not happy with that approach. It should really be up to the control that maintains CRUD over the text field.
from rmdateselectionviewcontroller.
Hi,
First: Sorry for the long delay!
Your are right, a swipe to clear feature is not optimal. What do you think of adding a clear button (just like the textview does) to the cell? The behavior of the button is known by the user and therefore should be more intuitively. Also this saves some taps as the user does not need to open the RMDateSelectionViewController again.
from rmdateselectionviewcontroller.
I've thought about it, but the UX for text input fields is that once they are engaged, the little 'x' button appears.
In our case here, the moment the field is engaged, the RMDateSelectionViewController is displayed. So we don't have any access to the cell.
Showing a permanent 'x' button on the cell constantly would make it look weird compared to the other cells that only show it upon engagement.
from rmdateselectionviewcontroller.
In the current master branch adding arbitrary buttons is possible. Thus, a clear button can be implemented, too.
from rmdateselectionviewcontroller.
Related Issues (20)
- Sometimes disappears offscreen HOT 5
- Date picker wheel not showing in iOS 8 iPhone HOT 7
- while scrolling HOT 5
- fatal error: unexpectedly found nil while unwrapping an Optional value HOT 2
- Getting wrong time HOT 2
- Dismiss parent view controller after picking the time HOT 2
- Readme is old & init doesn't work HOT 2
- White button text HOT 2
- RMAction problem on swift3 HOT 17
- Swift 3 multiple errors HOT 3
- set max date HOT 1
- Chartage Support? HOT 3
- In datetimepickermode, view goes outside the alert with style set as RMActionControllerStyleWhite HOT 2
- Change the font/size of the Title attribute? HOT 1
- Change font color HOT 1
- Date Selector Doesn't handle iOS 13 dark mode HOT 3
- I want only month and year column in date picker
- Xcode 12 display wrong HOT 3
- iOS 14/ Xcode 12 HOT 1
- iOS 14/ Xcode 12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmdateselectionviewcontroller.