2016-06-07 19:09:47 +02:00
|
|
|
<template name="toolbarSectionButton">
|
2016-08-29 14:10:51 +02:00
|
|
|
{{#if this.buttonTemplateName}}
|
|
|
|
|
{{>UI.dynamic template=this.buttonTemplateName data=this}}
|
|
|
|
|
{{else}}
|
|
|
|
|
<div id="{{this.id}}"
|
2016-11-07 15:01:03 +01:00
|
|
|
class="toolbarSectionButton rp-x-1 {{this.classes}} {{activeClass}} {{#if this.disabled}}disabled{{/if}} {{#if this.disableFunction}}{{#if (disableButton)}}disabled{{/if}}{{/if}}"
|
2016-11-24 00:23:18 +01:00
|
|
|
title="{{#if this.tooltipTitle}}{{this.tooltipTitle}}{{else}}{{this.title}}{{/if}}">
|
2016-08-29 14:10:51 +02:00
|
|
|
<div class="svgContainer">
|
|
|
|
|
{{#if this.svgLink}}
|
|
|
|
|
<svg>
|
|
|
|
|
<use xlink:href={{this.svgLink}}></use>
|
|
|
|
|
</svg>
|
|
|
|
|
{{else}}
|
|
|
|
|
<i class={{iconClasses}}></i>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="buttonLabel">
|
|
|
|
|
{{this.title}}
|
|
|
|
|
</div>
|
2016-06-07 19:09:47 +02:00
|
|
|
</div>
|
2016-08-29 14:10:51 +02:00
|
|
|
{{/if}}
|
2016-06-13 20:51:05 +02:00
|
|
|
</template>
|