Favorite Component (Apps)

Mark an item as a favorite

Adding the Favorites component lets users set favorites in your app. They can access these items in a separate list tab on the main list view.

Per user data

Favorites relies on per user data, so if your app already asks users to log in to view it, favorites will work fine, as Glide will recognise them by the email they used to log in.

If your app doesn't use login functionality and a user tries to use the favorites feature, Glide will prompt them to log in with a pin.

Setting the favorite key

The Key property on the Favorite component is where Glide identifies the exact item that the user is favoriting. This needs to be a unique value in a row.

If your table uses Row IDs, then Glide will take care of this for you.

pageRow ID Column

If you don't set a unique key, favorites will still work, but Glide will use cell locations (A1, B3, F7 etc...). So if you add or delete columns or rows, your favorites will be wrong.

By using a unique Key, if we add or delete rows in future, Glide will always be able to match any favorites without getting confused. Learn about unique keys below 👇

pageKeys & unique IDs

Changing the list label

We can change the name of the favorites list tab to suit our app. To do this, enable the Favourite Bar and change the name of Label on the right panel.

Overlays

If your list layout uses overlays then you can allow users to pick favorites from the list level. Read more 👇

pageOverlays

Seeing who favorited an item

When you enable favorites on a list, a new column called Is Favorited gets added to that table in the Data Editor. You can see which items your users have favorited by using the Preview As feature whilst looking at this column.

Last updated