-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1228 - Add the .filterLabel template to a file soy separate
- Loading branch information
1 parent
0f3d467
commit 5a74e70
Showing
4 changed files
with
37 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{namespace ClayFilterLabel} | ||
|
||
{template .render} | ||
{@param label: html|string} | ||
{@param spritemap: string} | ||
{@param? _handleFilterLabelCloseClicked: any} | ||
{@param? closeable: bool} | ||
{@param? expand: bool} | ||
|
||
{let $elementClasses kind="text"} | ||
tbar-item | ||
{if $expand} | ||
{sp}tbar-item-expand | ||
{/if} | ||
{/let} | ||
|
||
<li class="{$elementClasses}"> | ||
<div class="tbar-section"> | ||
{call ClayLabel.render} | ||
{param closeable: $closeable /} | ||
{param elementClasses: 'component-label tbar-label' /} | ||
{param events: ['close': $_handleFilterLabelCloseClicked] /} | ||
{param label kind="html"} | ||
<div class="label-section">{$label}</div> | ||
{/param} | ||
|
||
{param ref: 'label' /} | ||
{param spritemap: $spritemap /} | ||
{param style: false /} | ||
{/call} | ||
</div> | ||
</li> | ||
{/template} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5a74e70
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks @matuzalemsteles & @carloslancha.