|
15 | 15 | <div class="mb-3">
|
16 | 16 | <label for="short">Short Description</label>
|
17 | 17 | <InputTextArea class="form-control" id="short" @bind-Value="model.ShortDescription" rows="4"/>
|
| 18 | + <small id="short" class="form-text text-muted">You can use markdown to style your component.</small> |
18 | 19 | </div>
|
19 | 20 | <div class="mb-3">
|
20 | 21 | <label for="content">Content</label>
|
21 | 22 | <InputTextArea class="form-control" id="content" @bind-Value="model.Content" rows="10" />
|
| 23 | + <small id="content" class="form-text text-muted">You can use markdown to style your component. Additional features are listed <a @onclick="@(() => FeatureDialog.Open())">here</a></small> |
22 | 24 | @* <small id="content" class="form-text text-muted">Drag and drop images to upload and insert picture.</small> *@
|
23 | 25 | </div>
|
24 | 26 | <div class="mb-3">
|
|
59 | 61 | </div>
|
60 | 62 | </div>
|
61 | 63 | </div>
|
| 64 | + |
| 65 | +<ModalDialog @ref="FeatureDialog" Title="Additional Features"> |
| 66 | + <p>Here you will find a comprehensive list over feature you can use additional to classic markdown</p> |
| 67 | + <p>Features marked with <i class="fas fa-flask"></i> are experimental and can change heavily, get removed or the usage changes.</p> |
| 68 | + <p>Use with caution and check the changelog</p> |
| 69 | + <hr> |
| 70 | + <h3 style="display:inline-block">Slide-Show</h3><i class="fas fa-flask"></i> |
| 71 | + <p>Will create a slide-show with images specified by the tag.</p> |
| 72 | + <strong>Usage:</strong> |
| 73 | + <code><pre><slide-show> |
| 74 | + <slide-show-image src="https://picsum.photos/600/200" title="Title 1"></slide-show-image> |
| 75 | + <slide-show-image src="https://picsum.photos/500/200" title="Title 2"></slide-show-image> |
| 76 | + <slide-show-image src="https://picsum.photos/550/200" title="Title 3"></slide-show-image> |
| 77 | +</slide-show></pre></code> |
| 78 | +</ModalDialog> |
62 | 79 | @code {
|
63 | 80 | [Parameter]
|
64 | 81 | public BlogPost BlogPost { get; set; }
|
|
72 | 89 | [Parameter]
|
73 | 90 | public bool ClearAfterCreated { get; set; } = true;
|
74 | 91 |
|
| 92 | + private ModalDialog FeatureDialog { get; set; } |
| 93 | + |
75 | 94 | private CreateNewModel model = new();
|
76 | 95 |
|
77 | 96 | protected override void OnParametersSet()
|
|
0 commit comments