I currently have a Lightening web component with with displays the a parent object called 'Rebate'. Within this component I have am displaying the related children records called 'Rebate Lines' Pictured below. This is done by having a second line item component in a for:each
I would like the child component to behave similar to conditional formatting on reports. e.g if I remove the second line with the starting range of 200,000 and end range of 500,000. I would like the line beneath it to update to now have the starting range of 200,00 and the end range of 750,000 How would you complete this?
You can accomplish this by leveraging reactivity within your LWC components. This will allow you to dynamically detect and adjust based on data inputs, event changes, etc