Tuesday, 13 December 2016

CSS Required asterisk on Stock controls

If we have a requirement to show the asterisk next to selective control labels on the coach view ,we can achieve the requirement in two steps.

1.For each control label that needs the asterisk sign ,add the CSS class "myRequired" on the HTML attributes

2.
/*custom class ,select all the nodes and apply*/
.myRequired *.text.controlLabel:after {
    content: "*";
    color: #ff0000;
}


Note : Visibility setting of  "Required " on a stock control also enables the asterisk


No comments:

Post a Comment