Actually, it just occurred to me that we have a built in way of handling this, and it's compatible with AJAX lists.
Under "List view settings" for your type_consultation element, in the "List settings" tab, is an option "Use as row class". Set this to "Yes".
Fabrik will then automatically add the value of this element on each row as an additional class name for the row. The name will be "sanitized", so it only consists of alphanumeric characters, and we'll replace any non alphanumerics with a -, so you'll have to inspect the page after enabling this to see the exact class name you'll need to specify to match that accented string in your element. But once you add a class of that name, it should work, with no further action.
So, for example, if you have an element called "color", and the data in that element is either 'class_red', 'class_green' or 'class_blue', and you set that element as "Use as row class", you could then add 3 classes to your custom CSS ...
.class_red {
color: red;
}
.class_green {
color: green;
}
.class_blue {
color: blue;
}
... and your table rows would get colored accordingly.
The only other wrinkle is classes cannot start with a number, so if your data starts with a number, I believe we prepend the element name to the class name we give that row. But just inspecting the page will tell you what the class names needs to be to match any given data.
-- hugh