InputStyle: Outlined vs Filled, readonly=true/false

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
lbroker
Posts: 30
Joined: 26 Jun 2014, 02:39
Location: Lithuania

18 Oct 2020, 21:17

In previous Babylon version, when Input field had readonly=true it was shown as Outlined (white background)
and readonly=false, showed input as filled (input field gray background)
If was very good to use for view forms (outlined) and for editable forms (filled).
Now from Babylon 3.3.x, when readonly is set true or false, input button is allways the same. It depends of how it is set inputStyle value in guestpreferences.

Is there way to have filled inputStyle for editable input (readlonly=false)
and opposite to have inputStyle for readony input (readonly=true)

Thank you in advance

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

19 Oct 2020, 11:59

Hi,

Could you please try the following css code?

Code: Select all

body .ui-inputfield[readonly="readonly"] {
    opacity: 0.6;
}
Best Regards,

lbroker
Posts: 30
Joined: 26 Jun 2014, 02:39
Location: Lithuania

19 Oct 2020, 20:09

Thanks
I managed with similar style:

Code: Select all

.ui-inputfield[readonly="readonly"] {
     background-color: transparent !important;
 }

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

19 Oct 2020, 22:36

Hi,

Thanks a lot for the update!

Best Regards,

Post Reply

Return to “Babylon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests