From 0d99f6c62081edaf1f80615e2b70d489e800c95c Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Thu, 11 Jan 2018 11:17:02 +0000 Subject: [PATCH] Adds props to allow tooltip config. Breaks tests into specific cases --- .../vue_shared/components/clipboard_button.vue | 12 ++++++++++++ .../vue_shared/components/clipboard_button_spec.js | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/vue_shared/components/clipboard_button.vue b/app/assets/javascripts/vue_shared/components/clipboard_button.vue index 577709dfc1f..31d9b9d9c48 100644 --- a/app/assets/javascripts/vue_shared/components/clipboard_button.vue +++ b/app/assets/javascripts/vue_shared/components/clipboard_button.vue @@ -18,6 +18,16 @@ type: String, required: true, }, + tooltipPlacement: { + type: String, + required: false, + default: 'top', + }, + tooltipContainer: { + type: [String, Boolean], + required: false, + default: false, + }, }, }; @@ -29,6 +39,8 @@ :title="title" :data-clipboard-text="text" v-tooltip + :data-container="tooltipContainer" + :data-placement="tooltipPlacement" >