Hi, as mentioned in post #8, I want to hide the FormItemIcon when the formItem is disabled.
For now, I’ve only done some tests in the showcase.
At first, I thought about using a custom style.
Then, while reviewing the docs, I remembered that there’s also the option to use an SCStatefulImgConfig object, so I thought I’d give it a try.
But I’ve never used it before. Now that I’m reviewing the documentation, it turns out to be even more flexible than I remembered.
For example, I see there are prefixes like #state: and #modifier, which are really powerful and flexible.
However, it seems that I must explicitly declare the Over state. I just don’t understand how: I’d simply like the Over to behave normally, i.e., using iconOver.
But if I use Over:"Edit:cssClass:icon;", then it applies class="iconOver" when I hover, but it doesn’t switch back to class="icon" on mouseOut.
For now, I’ve only done some tests in the showcase.
At first, I thought about using a custom style.
Then, while reviewing the docs, I remembered that there’s also the option to use an SCStatefulImgConfig object, so I thought I’d give it a try.
But I’ve never used it before. Now that I’m reviewing the documentation, it turns out to be even more flexible than I remembered.
For example, I see there are prefixes like #state: and #modifier, which are really powerful and flexible.
However, it seems that I must explicitly declare the Over state. I just don’t understand how: I’d simply like the Over to behave normally, i.e., using iconOver.
But if I use Over:"Edit:cssClass:icon;", then it applies class="iconOver" when I hover, but it doesn’t switch back to class="icon" on mouseOut.
Comment