Skip to content

Conversation

@harshilp24
Copy link
Contributor

Description

Provide a concise summary of the changes made in this pull request

Pull request type

Check the appropriate box:

  • Review Fixes
  • Documentation Overhaul
  • Feature/Story
    • Link one or more Engineering Tickets
      *
  • A-Force
  • Error in documentation
  • Maintenance

Documentation tickets

Link to one or more documentation tickets:

Checklist

From the below options, select the ones that are applicable:

  • Checked for Grammarly suggestions.
  • Adhered to the writing checklist.
  • Adhered to the media checklist.
  • Verified and updated cross-references or added redirect rules.
  • Tested the redirect rules on deploy preview.
  • Validated the modifications made to the content on the deploy preview.
  • Validated the CSS modifications on different screen sizes.

@vercel
Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appsmith-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 5:06am

<dd>

Subscribe to theme changes and execute a callback function.
The `onThemeChange` function allows you to subscribe to theme changes within the application and execute a callback when the theme is updated. This facilitates the dynamic adjustment of UI elements to reflect the current theme. The following theme properties are accessible:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add details for how methods are used inside the code snippet. Simplify the language to say that the theme changes from application will be propagated to custom widget using the onThemeChange method.

@harshilp24 harshilp24 merged commit 2e44f06 into main Nov 15, 2024
2 checks passed
@harshilp24 harshilp24 deleted the onThemeChange branch November 15, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants