ResponsiveAds Documentation
Create a Support TicketContact Support
Developers Guide
Developers Guide
  • Introduction
  • Best Practices
  • Lightbox
  • Components
  • Custom JS
  • Radical API
  • code-examples
    • Dots in Carousel
    • Countdown timer
Powered by GitBook
On this page

Was this helpful?

Best Practices

When it comes to best practices for using the Radical API, you should keep a few things in mind. Here are some best practices to follow


Use updateElementStyles

When it comes to updating the visibility of an element, you should use the rad.updateElementStyles method. This method is more efficient and easier to use than updating the style attribute directly. The problem with updating the style attribute directly is that for certain elements (like Textbox), you also need to call the updateShrink() method to make the Textbox visible. rad.updateElementStyles handles this for you.

PreviousIntroductionNextLightbox

Last updated 3 months ago

Was this helpful?