Skip to content
This repository was archived by the owner on Jul 3, 2022. It is now read-only.

Commit 057e1df

Browse files
author
Khaled Shaaban
committed
Merge pull request #6 from kshaaban-/dev
Allow HTML to be passed and parsed through idp-label. Also closes #5 .
2 parents 3a8b087 + f889469 commit 057e1df

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/ionic-durationpicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
cacheTemplates.$inject = ["$templateCache"];
88

99
function cacheTemplates($templateCache) {
10-
$templateCache.put("idp-item.html","<ion-item ng-class=getItemClasses()><i ng-if=idpLabelIcon class=\"icon {{idpLabelIcon}}\"></i> {{idpLabel}} <button class=button ng-class=getInputButtonType() ng-click=showPopup()>{{prettyFormatDuration()}}</button></ion-item>");
10+
$templateCache.put("idp-item.html","<ion-item ng-class=getItemClasses()><i ng-if=idpLabelIcon class=\"icon {{idpLabelIcon}}\"></i><div ng-bind-html=idpLabel></div><button class=button type=button ng-class=getInputButtonType() ng-click=showPopup()>{{prettyFormatDuration()}}</button></ion-item>");
1111

1212
$templateCache.put("popup-minutes-seconds.html","<div class=row><span class=\"idp-control col col-offset-20 col-25\"><button type=button class=\"button button-clear button-small idp-control-arrow\" ng-click=\"increment(\'minutes\')\" on-hold=\"updateOnHold(\'minutes\', \'increment\')\" on-release=releaseHold()><i class=\"icon ion-chevron-up\"></i></button><div ng-bind=popupDuration.minutes class=idp-unit-box></div><button type=button class=\"button button-clear button-small idp-control-arrow\" ng-click=\"decrement(\'minutes\')\" on-hold=\"updateOnHold(\'minutes\', \'decrement\')\" on-release=releaseHold()><i class=\"icon ion-chevron-down\"></i></button></span> <label class=\"col col-10 idp-unit-separator\">:</label> <span class=\"idp-control col col-25\"><button type=button class=\"button button-clear button-small idp-control-arrow\" ng-click=\"increment(\'seconds\')\" on-hold=\"updateOnHold(\'seconds\', \'increment\')\" on-release=releaseHold()><i class=\"icon ion-chevron-up\"></i></button><div ng-bind=popupDuration.seconds class=idp-unit-box></div><button type=button class=\"button button-clear button-small idp-control-arrow\" ng-click=\"decrement(\'seconds\')\" on-hold=\"updateOnHold(\'seconds\', \'decrement\')\" on-release=releaseHold()><i class=\"icon ion-chevron-down\"></i></button></span></div>");
1313
}

dist/ionic-durationpicker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/idp-item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ion-item ng-class="getItemClasses()">
22
<i ng-if="idpLabelIcon" class="icon {{idpLabelIcon}}"></i>
3-
{{idpLabel}}
4-
<button class="button" ng-class="getInputButtonType()" ng-click="showPopup()">{{prettyFormatDuration()}}</button>
3+
<div ng-bind-html="idpLabel"></div>
4+
<button class="button" type="button" ng-class="getInputButtonType()" ng-click="showPopup()">{{prettyFormatDuration()}}</button>
55
</ion-item>

0 commit comments

Comments
 (0)