UNDER DEVELOPMENT

STAR RATING

A star rating widget that allows you to assign a rating and then execute a SmartBlock in response to assigning the rating.

Installation

You could use the Copy Extension button below to individually install this extension. To install, just paste anywhere in your Roam graph and click "Yes, I Know What I'm Doing".

Manual Installation

If the extension doesn't work after using the copy extension button above, try installing manually using the instructions below.

First create a block with the text {{[[roam/js]]}} on any page in your Roam DB. Then, create a single child of this block and type three backticks. A code block should appear. Copy this code and paste it into the child code block in your graph:

var existing = document.getElementById("roamjs-star-rating-main");
if (!existing) {
  var extension = document.createElement("script");
  extension.src = "https://roamjs.com/star-rating/main.js";
  extension.id = "roamjs-star-rating-main";
  extension.async = true;
  extension.type = "text/javascript";
  document.getElementsByTagName("head")[0].appendChild(extension);
}

Finally, click "Yes, I Know What I'm Doing".


  • Config

    • maximum - the maximum number of stars - default is 5

    • template - the SmartBlock template to run after a rating is provided


Contributors

This extension is brought to you by Matthew Pryor! If you are facing any issues reach out to jmp@tenacious.ventures or click on the chat button on the bottom right.

If you get value from using this extension, consider sponsoring Matthew Pryor by clicking on the button below!

Other Extensions