Placeholder text in oXygen css for text field and textarea

mu258770
Posts: 125
Joined: Mon Aug 18, 2014 4:11 pm

Placeholder text in oXygen css for text field and textarea

Post by mu258770 » Mon Aug 20, 2018 4:05 pm

Hi Team

I would like to know whether it is possible to keep some placeholder text in an oXygen css text field(oxy_textfield). We are using oXygen 19.1 Author version.

For example : we have a text box for <change-completed> element and we need to show DD-MM-YYYY as placeholder text in the text box. How this is possible?

2) Also we need to know whether it is possible to have this for text area(oxy_textArea) .

Best Regards,
Shabeer

alex_jitianu
Posts: 704
Joined: Wed Nov 16, 2005 11:11 am

Re: Placeholder text in oXygen css for text field and textarea

Post by alex_jitianu » Tue Aug 21, 2018 11:16 am

Hello,

Currently, those two form controls don't offer this functionality. I will add an issue to support a new placeholder property on the form controls.

Meanwhile, perhaps it will help if you use a date picker form control instead of the text field because you can impose a date format.

There is always the option to create custom form controls that will present a placeholder text as you desire.

Best regards,
Alex

mu258770
Posts: 125
Joined: Mon Aug 18, 2014 4:11 pm

Re: Placeholder text in oXygen css for text field and textarea

Post by mu258770 » Thu Aug 23, 2018 12:07 pm

Hi Alex,

Thanks for the solution.

We are using eclipse-oXygen 18.1.

Currently the date format shown in oxy_datePicker is in 'MM/DD/YYYY' and the date inserted is in 'YYYY-MM-DD' format. This is a little confusing for an end user.

Is there any way to change the date format shown in the oxy_datePicker popup?

Best Regards,
Shabeer

Radu
Posts: 6539
Joined: Fri Jul 09, 2004 5:18 pm

Re: Placeholder text in oXygen css for text field and textarea

Post by Radu » Thu Aug 23, 2018 12:38 pm

Hi Shabeer,

Alex took a week off.
The date picker you see on Eclipse is the usual date picker component that can be used on this platform (org.eclipse.swt.widgets.DateTime) and it formats the presented date based on the current user locale. Unfortunately we cannot quite control this from our side.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

mu258770
Posts: 125
Joined: Mon Aug 18, 2014 4:11 pm

Re: Placeholder text in oXygen css for text field and textarea

Post by mu258770 » Thu Aug 23, 2018 1:03 pm

Hi Radu,

Ok Thank you :)

Best Regards
Shabeer

Post Reply