Documentation

Widget codes

Make a widget code to share a widget's template and appearance, import a code for the same Widget type, and delete a code by typing it.

A widget code carries a widget's template and appearance. You or another Blocky user can import the code into a draft of the same Widget type. A widget code is not an Embed link.

You make codes from widget cards on the dashboard, and you find them on the Widget codes page.

Make a code

  1. On the dashboard, open the actions menu on the widget card.
  2. Click Generate code. Blocky shows Code generated!, and the code appears on the Widget codes page.

Copy a code

  1. In the dashboard, click Widget codes.
  2. In the Code column, click the code. Blocky copies it and shows Copied to clipboard.

If Blocky shows Copy failed, your browser blocked access to the clipboard.

Import a code

An import needs a code for the same Widget type as the draft. For example, a code from a Bar chart imports into a Bar chart draft, and not into a Line chart draft. The code's template can differ from the draft's template.

  1. Open the draft in the editor.
  2. In the editor header, click Import code.
  3. Paste the code in Widget code.
  4. Click Import. The code's template and appearance replace the draft's layout. The draft keeps its Inputs, its data source, and its name.

If the code is for another Widget type, or if no such code exists, the editor shows That code doesn't exist or is for another widget type. If a Notion data refresh is running, the editor shows Wait for the Notion data refresh to finish. Try again after the refresh.

Delete a code

You can't undo a delete. After the delete, the code can't be imported. The widget that made the code stays as it is.

  1. In the dashboard, click Widget codes.
  2. In the Actions column of the code's row, click the delete button. The Delete widget code? dialog shows the code under Exact code, with a copy button.
  3. In Type the widget code to confirm, type or paste the code.
  4. Click Delete widget code. Blocky shows Widget code deleted.