Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Place holder style  (Read 8562 times)
Benjamin G.
Posts: 130


« on: November 05, 2020, 12:03:48 pm »

Hi,

Can we set the "textColor" of the placeholder attribute ?
Same question for the color of the HLine component ?

Thanks
Reuben B.
Four Js
Posts: 1119


« Reply #1 on: December 06, 2020, 11:57:13 pm »

If using Universal Rendering and/or GBC, the answer should be yes via Customisation.

The key point is finding the appropriate selector and then adding some customisation.

Placeholder is a little different,  https://www.w3schools.com/howto/howto_css_placeholder.asp but it should be a case of something like the following if the browser supports it

Code
  1. ::placeholder {
  2.    color: red;
  3. }

In case of HLine component, the trick again is finding the appropriate selector, Developer Tools should shows that as .gbc_HLineWidget and that the line is being drawn by use of border top.  So

Code
  1. .gbc_HLineWidget {
  2.   border-top-color: red;
  3. }
  4.  


 

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines