Skip to content

Commit

Permalink
Added some more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-holt committed Jan 22, 2020
1 parent b6f41d1 commit c6fdc87
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion locales/en/translation.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
welcome-label: Welcome to our <strong>Test for markup in the label</strong>
welcome-caption: This is the test <em>for the caption</em>
welcome-caption: This is the test <em>for the caption &numero;</em>
2 changes: 1 addition & 1 deletion src/app.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.text-primary
{
color: blue;
color: red;
}

section {
Expand Down
5 changes: 5 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,24 @@
<test-label t="[html]welcome-label"></test-label>
</section>


<section>
<p>
t is bound to [caption] property. Again does not pickup the markup
</p>
<test-label t="[caption]welcome-caption"></test-label>
</section>


<section>
<p>
I want to bind t to [html] AND to [caption]
</p>
<test-label t="[html]welcome-caption"></test-label>
<test-label t="[caption]welcome-caption"></test-label>

<test-label t="[caption]welcome-caption;[html]welcome-caption"></test-label>
<test-label t="[caption][html]welcome-caption"></test-label>
</section>


Expand Down
6 changes: 4 additions & 2 deletions src/test-label-custom-element.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>

<div>${label}</div>
<small>${caption}</small>
<div>
<div>${label}</div>
<small class="text-primary">${caption}</small>
</div>

</template>

0 comments on commit c6fdc87

Please sign in to comment.