Scenario:
Basically if you want to conditionally show/hide in any visual force element we will use the "rendered=true/false".Let assume if your using any html tags like <div> <span> in your visual force page and you want to hide/show conditionally we can not use the "rendered=true/false" property with these html tags.Solution:
In these type of situations you can use some standard css styles to show or hide html content on conditionally.
<div style="{!IF(AND(condition1,condition2),'display:block','display:none')}"> //display:block - Shows the content,it's similar to rendered="true" //dispaly:none - Hides the content,it's similar to rendered="false"
Sample Code:
<div class="slds-truncate sldswordWrap" style="{!IF(AND(condition1,condition2),'display:block','display:none')}"> <span class="slds-icon_container slds-icon-standard-call"> <svg class="slds-icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/apexpages/slds/latest/assets/icons/standard-sprite/svg/symbols.svg#call" /> </svg> <span class="slds-assistive-text">Description of icon when needed</span> </span>
</div>
Hope this helped you..Enjoy!..
6339379D61
ReplyDeletehacker bulma
hacker bulma
tütün dünyası
-
-
ReplyDeleteDilerseniz arkadaşlarınızla daha samimi ve hızlı iletişim kurmak için whatsapp görüntülü show seçeneklerini deneyebilirsiniz. Bu sayede yüz yüze görüşmenin avantajını yaşarken, zaman ve mekân sıkıntısı yaşamadan konuşmalarınızı gerçekleştirebilirsiniz. Özellikle uzakta olan yakınlarınızla bağlantı kurmak için oldukça kullanışlıdır. Ayrıca, bu platformlar sayesinde anlık görüntülü ve sesli görüşmeler yapmanız mümkün hale gelir. İsterseniz detaylar için ilgili siteye göz atabilirsiniz.
ReplyDeletePrinting on various surfaces has become easier with modern methods like dtf transfer, which ensures vibrant and durable results. This technology allows for detailed designs to be transferred seamlessly, making it popular among small businesses and hobbyists alike. Many entrepreneurs are turning to dtf transfer to enhance their product offerings without the need for expensive equipment. Whether for apparel or accessories, this method provides a versatile solution for custom printing needs.