My Mega Awesome Project

Welcome to the interactive editor.

Mar 12, 2021
0.00
Species
Island
Beak Length (mm)
Beak Depth (mm)
Flipper Length (mm)
Body Mass (g)
Sex
Adelie
Torgersen
39.1
18.7
181
3750
MALE
Adelie
Torgersen
39.5
17.4
186
3800
FEMALE
Adelie
Torgersen
40.3
18
195
3250
FEMALE
Adelie
Torgersen
Adelie
Torgersen
36.7
19.3
193
3450
FEMALE
Adelie
Torgersen
39.3
20.6
190
3650
MALE
Adelie
Torgersen
38.9
17.8
181
3625
FEMALE
Adelie
Torgersen
39.2
19.6
195
4675
MALE
Adelie
Torgersen
34.1
18.1
193
3475
Adelie
Torgersen
42
20.2
190
4250
Loading...

If my dog is 0.00 years old, then that’s 0.00 years in dog years.

Case 0

Editing text

Any block of text that you see on this page can be edited. To edit it, move your mouse over a paragraph of text and click. You should see a black border appear on the left, indicating that the text is now being edited. Make the changes that you desire, then click anywhere else on the page to stop editing and apply your changes.

Text is read in in a markup language based on something called Markdown. Markdown is a syntax that is meant to make it easy to add common styles to your text.

For example you can use this syntax to create bold ( **bold** ) and italic ( *italic* ) styles. Or use three backticks to create code blocks:

* lists
* of
* items,

For more information on the syntax check out https://idyll-lang.org/docs/syntax .

Components

Adding components

To add a component to the article, first select the Components tab on the sidebar. The components there are categorized according to functionality, e.g. components in the Input category involve receiving input from users (buttons, sliders, checkboxes, and so on).

To add a component to the page, drag it from the panel on the left into your document. As you drag, gray drop targets will appear between existing content, indicating a valid place for you to add the new component.

Editing components

Once the component has been added, a small “gear” icon will appear. Click the gear icon to call up the component properties editor.

The component properties editor has several tabs, each of which offers a different way to edit the component. Most of the functionality can be accessed through the Properties tab, but more advanced uses may require going into the Markup or Styles tab.

The properties tab enables you to edit properties which drive component behavior. For example the Header component accepts a title property which is displayed as the article’s headline. You can write text or numbers directly in these properties boxes, but may also use variables and expressions to add interactivity (more on this later).

Editing source code

If you want to get fancy and write your own component, check out the Custom panel. It contains several components by default, and if you hover over these components an Edit button will appear. Clicking this will open their source code in your system’s text editor. Every time you edit and save the source code, the component will be reloaded in the document and your changes will be instantly available.

If you would like to create a new custom component based on an existing one, use the Duplicate button. This will cause a copy of the component to be added to the Custom section.

Interactivity

To add interactivity, you need to use variables. Click the Variables tab in the sidebar to see the variables that exist in their document, along with their current and initial values.

The slider below has its value “bound” to the variable x . Notice that when you move the slider, x ’s current value in the sidebar updates.

To bind a variable to a property, you can edit the property directly to refer to the name of the variable. Make sure that the property type (e.g. number , string . expression ) is set to variable . You can change the type by clicking on it.

Alternatively you can drag and drop the variable from the sidebar onto the property to which you want to bind it. To do so, click on the variable’s name in the variables panel and drag until it is over the relevant component. The properties panel should open automatically, revealing the list of properties. Place your cursor over the one that you want to bind and a green box should appear. Release your mouse button and the variable will be bound.

Here’s another example of binding a variable. This Display Value component has also been bound to x . Notice that when you manipulate the slider above, the value below changes as well:

0.00

Datasets

The Idyll editor also includes functionality for importing datasets. Currently CSV and JSON files are supported.

To import a dataset, first open the Variables panel in the sidebar on the left. Then drag-and-drop your data file on the drop target near the bottom. When you do this a copy of your data will be imported into the project, and it will appear as a new row in the variables table.

Once a dataset is loaded it can be used just like any other variable, and can be used to drive component properties. For example, this table is showing a dataset which was imported using the method described:

x
y
0
0
1
1
Loading...

Saving

To save your changes use the keyboard shortcut Ctrl+S ( Cmd+S on Macs) or select File -> Save from the menu.

Publishing

Open the Document panel on the left, then click the Publish button. This will create a new URL for your document if one doesn’t already exist, or will update one that does. The document will automatically be saved upon hitting publish.

Use the fields in the Social Media Metadata section above the publish button to set the title and descriptions that will appear in social media share cards, search engine results, etc. Note that the Share Image field needs to be a fully qualified URL.

To see what your post will look like with the editing functionality turned off, you can use the Preview button directly above Publish .

Learn more

To learn more see the documentation at https://idyll-lang.org/docs/ , join our chatroom , or see the project on GitHub .