header
underline header
underline sticky header
Text
Standard Text
This is a paragraph of text. It contains some bold text to highlight terms, some
italic text to reference or quote other sources, some
You can also include code boxes:
const example = "This is a code boxe" function exampleFunc() { return example}
and note boxes:
Auto Fill
You can automatically fill test using the
-> {{text-01}} {{text-02}}
The text data must be a list of dictionaries. In this case there's one dictionary element, with two keys: text-01 and text-02
let textToFill = [ { "text-01":"This text was filled in via the Auto_Fill function. ", "text-02":"And this text was also filled in via the Auto_Fill function. " }
In your html you need to provide the target id and the keys in double curly brackets {{key}}:
<p id="id-text-01"> -> {{text-01}} {{text-02}} </p>
In your script part you have to call
Auto_Fill(textToFill,"id-text-01")
The Auto_Fill function works also for mutliple entries. This table was filled via AutoFill:
| Country | City | River | Food |
|---|---|---|---|
| {{Country}} | {{City}} | {{River}} | {{Food}} |
The data:
let tableToFill = [ {"Country": "Germany", "City": "Munich", "River": "Isar", "Food": "Beer"}, {"Country": "France", "City": "Paris", "River": "Seine", "Food": "Baguette"}, {"Country": "Italy", "City": "Rome", "River": "Tiber", "Food": "Pasta"}, {"Country": "Spain", "City": "Madrid", "River": "Manzanares", "Food": "Paella"}, {"Country": "Japan", "City": "Tokyo", "River": "Sumida", "Food": "Sushi"}, {"Country": "USA", "City": "New York", "River": "Hudson", "Food": "Burger"} ]
The html:
<table> <thead> <tr> <th>Country</th> <th>City</th> <th>River</th> <th>Food</th> </tr> </thead> <tbody id="id-tbody-01"> <tr> <td>{{Country}}</td> <td>{{City}}</td> <td>{{River}}</td> <td>{{Food}}</td> </tr> </tbody> </table>
The code:
Auto_Fill(tableToFill,"id-tbody-01")
Auto Fill Batch
Auto_Fill_Batch is an extension of Auto_Fill to handle large data sets with better performance. The usage is similar to Auto_Fill. Auto_Fill_Batch processes the data in batches per second. Here is an example of how to use Auto_Fill_Batch to fill a table with 600 entries:
| Country | City | River | Food |
|---|---|---|---|
| {{Country}} | {{City}} | {{River}} | {{Food}} |
Show Ego Code
With the function
HTML
The function
MarkDown
The class
| Source (markdown) | Back from HTML |
| HTML Code | HTML Output |