• Jean-Francois Labbé
  • NEWBIE
  • 15 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
If I develop a Lightning Web Component (LWC) and want this component to behave or to display different styles based on the container where this component is shown. (Web based Community vs Mobile publisher community) Is there a way to know that my community is viewed on a browser or on the Mobile Publisher container ? I was wondering if there’s a global attribute that I can get to know the context of even a class added in the HTML body ?
If I develop a Lightning Web Component (LWC) and want this component to behave or to display different styles based on the container where this component is shown. (Web based Community vs Mobile publisher community) Is there a way to know that my community is viewed on a browser or on the Mobile Publisher container ? I was wondering if there’s a global attribute that I can get to know the context of even a class added in the HTML body ?