Skip to main content

Questions tagged [dynamic-style]

Ability to dynamically style generic sObject components using native salesforce styling

Filter by
Sorted by
Tagged with
0 votes
1 answer

How do I set the height of a div programmatically in the LWC's HTML file?

I have an outer div which wraps an inner div with a dynamic amount of content in it. For reasons that are beyond the scope of this question, I want to set the height of the outer div to match the ...
imfromthepast's user avatar
-3 votes
1 answer

Ternary operator error, it gives me unknown property error

ive been dynamically trying to assign styling based on click of a check box from the component itself but sue to some reasonit is not able to accept the condition ive applied: <td scope="row&...
Sanju john's user avatar
1 vote
1 answer

Add variable to div inline style

I want to set the background image of a div from the variable "imageUrl". I get the imageUrl from a variable in the js. The img src part of the html code works. But getting the variable into ...
Jonathan Crow's user avatar
1 vote
1 answer

Get computed style in Jest Test

I have the following code. Html template <template> <tr class="table__row" aria-hidden={isHidden} data-test-class="table-row"> <td>Cell</td> ...
nchursin's user avatar
  • 1,001
1 vote
1 answer

Lightning Dynamic Style width setting using aura:attribute value binding

Can anyone please help me here, <aura:attribute name="failureCount" type="Integer" default="2"/> <aura:attribute name="totalStatusCount" type="Integer" default="2"/> <div class="status"...
Kiruthika's user avatar
0 votes
1 answer

Why isn't this dynamic VisualForce page style toggling the Static Resources properly?

I'm currently looking at the Dynamic References to Static Resources Using Mostly, it works as expected, with one anomaly: When the page initially displays, as expected, it correctly uses both the ...
Brian Kessler's user avatar
4 votes
1 answer

Tab Style Icon from sObjectType

Is it possible to get the tab style from the sObjectType? In other words, if I have an object with a tab icon of "People", the tab style I'd want to return is "Custom15"... Any ideas?
Nathan Williams's user avatar