Skip to content

Instantly share code, notes, and snippets.

@LokeshSagi
Last active July 6, 2020 11:36
Show Gist options
  • Save LokeshSagi/b4bee09e018101a37d39a836e7d1037b to your computer and use it in GitHub Desktop.
Save LokeshSagi/b4bee09e018101a37d39a836e7d1037b to your computer and use it in GitHub Desktop.
Dynamically show/hide the data coming from backend on the UI using css and dataset - In this example, whenever data-ccr = 'CCR', the particular td doesnt show value on UI
td[data-ccr="CCR"] span {
display: none;
}
....
....
<td data-ccr={part.SBQQ__ProductCode__c} data-label="Quantity" class="slds-truncate">
<span>{part.SBQQ__Quantity__c}</span>
</td>
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment