Creating a starter project
Starter project activity
This project has been created with the sole purpose of:
Allowing you to see what is possible with widgets
A space for you to follow the activity provided to learn about how you can customise widgets with ease
What you will learn
How to adjust styles for inline tiles & expanded tiles
How to adjust templates for inline tiles & expanded tiles.
How to hook into emitted events
How to apply dynamic css variables
Getting started with the activity
You will notice this widget is bouncing. Please stop the circle from bouncing.
Why is the widget in a circle? Please remove the circle and ensure it is in a grid format, covering the entire screen.
The border of the circle is based on the mood given to the method. Please update it so that it is using 'nosto' mood with a pink border to represent Nosto.
Every time I expand a tile, a dog appears. Please change this to the actual tile image.
Every time an event is emitted, a toast message appears, please remove this.
A successful attempt at this activity will be something like the following.

Answers:
To stop the circle from bouncing, remove
@keyframes bounce { }
in extras.scssTo remove the circle, remove the
border-radius
property inextras.scss
To update the border color to the Nosto mood, update the
"--my-mood-border"
variable in the widget.tsx file.To change the dog image to the actual tile image, update the
tile.template
file to instead use thetile.image
property.To remove the toast message, remove the eventListener in widget.tsx
Last updated
Was this helpful?