Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable a column in a layout + time picker optional seconds #66

Merged
merged 1 commit into from Nov 27, 2019
Merged

Allow to disable a column in a layout + time picker optional seconds #66

merged 1 commit into from Nov 27, 2019

Conversation

martin-danhier
Copy link
Contributor

@martin-danhier martin-danhier commented Sep 2, 2019

Hello, it's me again^^

I noticed that a picker must have 3 columns, but in some case you may want only two (for example in a time picker without the seconds column).
With this commit, setting a column's layout proportion to 0 will disable the column completely (without needing to do weird proportions like [100, 100, 1]).

That created an opportunity for a "showSecondsColumn" property in the TimePickerModel that would enable/disable the seconds column, so I implemented it too. :) Apparently, this is a feature that is requested by several people: #61 #45

Finally, I fixed the warnings created by my previous commit.

Have a good day,

Martin

@patreu22
Copy link

patreu22 commented Oct 9, 2019

+1 for this PR, any reason it's not merged yet?

@bagus-repository
Copy link

Please merge this if validated, it's very useful

@jsonthor
Copy link

I also need this feature. We don’t need the seconds feature for setting a notification time for example.

@Realank
Copy link
Owner

Realank commented Nov 27, 2019

It looks great, sorry for all for my late PR review, thanks

@Realank Realank merged commit 935a4c6 into Realank:master Nov 27, 2019
@patreu22
Copy link

Great, thanks for merging that! Would it be possible to update the pub package as well? :)

@huitingyeong
Copy link

Hi like this feature. Is it possible to disable it from user modification but still display the current value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants