tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

Question - Date/Time input types

Open Zeldaze opened this issue 9 years ago • 6 comments

Any suggestions on an easy to use date picker / time selector input type? Will most likely have to use a Cordova plugin for that, right?

Zeldaze avatar Jan 22 '17 14:01 Zeldaze

You are correct that there is no built-in date and/or time selectors in Tabris.js. If you're looking for a calendar-based date selection, check out tabris-calendar. It's Android-only because there is no equivalent native control on iOS. I'd start with cordova-plugin-datepicker though I haven't tested it.

See also #652

cookieguru avatar Jan 22 '17 20:01 cookieguru

That's a shame, as I want to preserve cross-platform compatibility. Is there no other option other than a series of pickers for the day/month/year with some annoying logic to handle number of days per month?

On Mon, 23 Jan 2017 at 7:31 am, Tim Bond [email protected] wrote:

You are correct that there is no built-in date and/or time selectors in Tabris.js. If you're looking for a calendar-based date selection, check out tabris-calendar https://github.com/eclipsesource/tabris-calendar. It's Android-only because there is no equivalent native control on iOS. I'd start with cordova-plugin-datepicker https://github.com/VitaliiBlagodir/cordova-plugin-datepicker though I haven't tested it.

See also #652 https://github.com/eclipsesource/tabris-js/issues/652

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eclipsesource/tabris-js/issues/1107#issuecomment-274356975, or mute the thread https://github.com/notifications/unsubscribe-auth/ATEBrGQMZBiwjpRY_jewMLlBXdLPspJHks5rU7y7gaJpZM4LqZbw .

Zeldaze avatar Jan 22 '17 20:01 Zeldaze

The calendar-based plugin is Android-only. cordova-plugin-datepicker is compatible with both iOS and Android.

cookieguru avatar Jan 22 '17 20:01 cookieguru

We have also used the https://github.com/VitaliiBlagodir/cordova-plugin-datepicker in several projects and it served us reasonably well.

mpost avatar Jan 23 '17 09:01 mpost

I will close this issue. Please reopen https://github.com/eclipsesource/tabris-js/issues/652 if you have any requirements which available Cordova plugins don't satisfy.

cpetrov avatar Feb 20 '17 13:02 cpetrov

As of Tabris.js 2.2.0, the DateDialog and TimeDialog widgets are available natively.

cookieguru avatar Dec 11 '17 19:12 cookieguru