Search code examples
pebble-watchcloudpebble

How can I edit the body of my Pebble.js UI.Card?


I have created a card and shown it already. Now I want to change some text on it while it's in view. Can I just do something like card.body = "blah blah"? How do I update it?


Solution

  • Just write:

    card.body("my new body");
    

    This syntax works to change any property on all Pebble.js Windows and Elements.