Page 1 of 1

Placeholder text in oXygen css for text field and textarea

Posted: Mon Aug 20, 2018 4:05 pm
by mu258770
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

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

Posted: Tue Aug 21, 2018 11:16 am
by alex_jitianu
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

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

Posted: Thu Aug 23, 2018 12:07 pm
by mu258770
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

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

Posted: Thu Aug 23, 2018 12:38 pm
by Radu
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

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

Posted: Thu Aug 23, 2018 1:03 pm
by mu258770
Hi Radu,

Ok Thank you :)

Best Regards
Shabeer