::after css support in mendix native app

Can anybody please suggest, I wanted to add an '*' after the text field(example Email*) but I am not able achieve it. It is for Mendix app for mobile. Have added the CSS like below:   export const requiredField = { after:{ content: "*", color: "green", }, '&::after':{ content: "*", color: "grey", }, 'text::after':{ content: "*", color: "red", },
1 answers

Hi Vaishali Rana,

Try this code below :


.req label::after {

    content: '*';

    color: #EB4747;

    font-weight: 600;



use the class name "req " in the text box where u need it.