Code Monkey home page Code Monkey logo

Comments (5)

CooperRS avatar CooperRS commented on August 23, 2024

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.

sedwo avatar sedwo commented on August 23, 2024

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.

CooperRS avatar CooperRS commented on August 23, 2024

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.

sedwo avatar sedwo commented on August 23, 2024

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.

CooperRS avatar CooperRS commented on August 23, 2024

In the current master branch adding arbitrary buttons is possible. Thus, a clear button can be implemented, too.

from rmdateselectionviewcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.