Hello everybody!
First of all, I don't know if this is the right forum (here in general) to post this type of question.
I would like to set the color of a value of a field (in the view).
I have 2 columns:
- The first is of type booleanType yes/no - 2 options
- And the second is of type LookupType.
I would like the first column when set to "No", the text color of the lookup to have a different color and a bold/font-weight.
How do I style this? I have the following:function validate(rowData) {
var str = JSON.parse(rowData);
var valid = str.acr_valid_Value; //get first attribute
var name = str.acr_name; //get second attribute
if (valid._label == 'No') {
console.log("into in " name " change color please!");
}
}
Then in Asset Views, I choose the column (the second one) to change properties, I choose the web resource that is the .js and I pass it the name of the validate function, which is my case. The example of the function is taken from here.
Thank you.
Andrei