We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
is there a way to programmatically change an attr.styles?
For example, I would transform SLabel's styles from text-info to text-danger when an error occurs. Is it possible?
Right now I'm changing the whole string style, also if I would like to remove only one class and add another one.
The text was updated successfully, but these errors were encountered:
You just have to manipulate the text but you can do something like this:
property bool error: false; property string labelStyle: error ? "label-danger" : "label-success"; SLabel { style: "text-info " + labelStyle; }
Sorry, something went wrong.
No branches or pull requests
Hi,
is there a way to programmatically change an attr.styles?
For example, I would transform SLabel's styles from text-info to text-danger when an error occurs. Is it possible?
Right now I'm changing the whole string style, also if I would like to remove only one class and add another one.
The text was updated successfully, but these errors were encountered: