I'm working with Sencha Architect.
I'm passing values from a localStorage to a displayfield.
get_name: function(component, eOpts) {
let data = JSON.parse(localStorage.getItem("loginData"));
name = data["name"];
Ext.ComponentQuery.query('displayfield[name="show_name"]')[0].setValue(name);
}
The value appears normally, but I can't change the font color.
Any idea how I can do this?
I've tried a few things like:
html, style, css.
But the text color remains default
You can change the text color of your displayfield's value by using the config fieldStyle or setting it programmatically with the method setFieldStyle .
So here are your alternatives:
OR