aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/scripts/directives/ellipsis/ellipsis-directive.html
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/app/scripts/directives/ellipsis/ellipsis-directive.html')
-rw-r--r--catalog-ui/app/scripts/directives/ellipsis/ellipsis-directive.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/catalog-ui/app/scripts/directives/ellipsis/ellipsis-directive.html b/catalog-ui/app/scripts/directives/ellipsis/ellipsis-directive.html
new file mode 100644
index 0000000000..31fa06adda
--- /dev/null
+++ b/catalog-ui/app/scripts/directives/ellipsis/ellipsis-directive.html
@@ -0,0 +1,7 @@
+{{actualText}}
+
+<span class="ellipsis-directive-more-less"
+ data-ng-click="collapsed = !collapsed; toggleText()"
+ data-ng-hide="ellipsis.length <= maxChars">
+ {{collapsed ? "More" : "Less"}}
+</span>