Files

7 lines
1.5 KiB
Plaintext

page ProjectBoardExample {
state tasks = [{label:"Review designs"},{label:"Build the dashboard"},{label:"Test accessibility"}]
view {
<nav class="example-toolbar"><a href="/preview">← All examples</a><a href="#example-source">View code</a></nav> <main class="example-form-page" style="max-width:42rem;margin:3rem auto;padding:1.5rem;display:grid;gap:1.5rem"><h1>Project workspace</h1><DragAndDrop title="Priorities" description="Drag a row or use its arrow buttons." items="{tasks}" /><WysiwygEditor title="Team update" value="Share what you are working on this week." /></main> <section class="example-code-panel"><header><h2>Copy this example</h2><button type="button" data-copy-target="#example-source">Copy code</button></header><pre><code id="example-source">page ProjectBoardExample <span>&#123;</span>
state tasks = [<span>&#123;</span>label:"Review designs"<span>&#125;</span>,<span>&#123;</span>label:"Build the dashboard"<span>&#125;</span>,<span>&#123;</span>label:"Test accessibility"<span>&#125;</span>]
view <span>&#123;</span> &lt;main class="example-form-page" style="max-width:42rem;margin:3rem auto;padding:1.5rem;display:grid;gap:1.5rem"&gt;&lt;h1&gt;Project workspace&lt;/h1&gt;&lt;DragAndDrop title="Priorities" description="Drag a row or use its arrow buttons." items="<span>&#123;</span>tasks<span>&#125;</span>" /&gt;&lt;WysiwygEditor title="Team update" value="Share what you are working on this week." /&gt;&lt;/main&gt; <span>&#125;</span>
<span>&#125;</span></code></pre></section> } }