kamrify commited on
Commit
2e3441e
·
1 Parent(s): df9f42f

Hide buttons on single popover demos

Browse files
Files changed (1) hide show
  1. demo/scripts/demo.js +7 -0
demo/scripts/demo.js CHANGED
@@ -170,6 +170,7 @@ document.addEventListener('DOMContentLoaded', function () {
170
  e.preventDefault();
171
  singleDriverWithPopover.highlight({
172
  element: '#single-element-with-popover',
 
173
  popover: {
174
  title: 'Did you know?',
175
  description: 'You can add HTML in title or description also!',
@@ -188,6 +189,7 @@ document.addEventListener('DOMContentLoaded', function () {
188
 
189
  singleDriverWithPopoverPosition.highlight({
190
  element: '#single-element-with-popover-position',
 
191
  popover: {
192
  title: 'Did you know?',
193
  description: 'You can add HTML in title or description also!',
@@ -209,6 +211,7 @@ document.addEventListener('DOMContentLoaded', function () {
209
 
210
  positionBtnsDriver.highlight({
211
  element: '#position-btn-left',
 
212
  popover: {
213
  title: 'Did you know?',
214
  description: 'You can add HTML in title or description also!',
@@ -223,6 +226,7 @@ document.addEventListener('DOMContentLoaded', function () {
223
 
224
  positionBtnsDriver.highlight({
225
  element: '#position-btn-right',
 
226
  popover: {
227
  title: 'Did you know?',
228
  description: 'You can add HTML in title or description also!',
@@ -237,6 +241,7 @@ document.addEventListener('DOMContentLoaded', function () {
237
 
238
  positionBtnsDriver.highlight({
239
  element: '#position-btn-bottom',
 
240
  popover: {
241
  title: 'Did you know?',
242
  description: 'You can add HTML in title or description also!',
@@ -251,6 +256,7 @@ document.addEventListener('DOMContentLoaded', function () {
251
 
252
  positionBtnsDriver.highlight({
253
  element: '#position-btn-top',
 
254
  popover: {
255
  title: 'Did you know?',
256
  description: 'You can add HTML in title or description also!',
@@ -270,6 +276,7 @@ document.addEventListener('DOMContentLoaded', function () {
270
 
271
  htmlDriver.highlight({
272
  element: '#single-element-with-popover-html',
 
273
  popover: {
274
  title: '<em>Tags</em> in title or <u>body</u>',
275
  description: 'Body can also have <strong>html tags</strong>!',
 
170
  e.preventDefault();
171
  singleDriverWithPopover.highlight({
172
  element: '#single-element-with-popover',
173
+ showButtons: false,
174
  popover: {
175
  title: 'Did you know?',
176
  description: 'You can add HTML in title or description also!',
 
189
 
190
  singleDriverWithPopoverPosition.highlight({
191
  element: '#single-element-with-popover-position',
192
+ showButtons: false,
193
  popover: {
194
  title: 'Did you know?',
195
  description: 'You can add HTML in title or description also!',
 
211
 
212
  positionBtnsDriver.highlight({
213
  element: '#position-btn-left',
214
+ showButtons: false,
215
  popover: {
216
  title: 'Did you know?',
217
  description: 'You can add HTML in title or description also!',
 
226
 
227
  positionBtnsDriver.highlight({
228
  element: '#position-btn-right',
229
+ showButtons: false,
230
  popover: {
231
  title: 'Did you know?',
232
  description: 'You can add HTML in title or description also!',
 
241
 
242
  positionBtnsDriver.highlight({
243
  element: '#position-btn-bottom',
244
+ showButtons: false,
245
  popover: {
246
  title: 'Did you know?',
247
  description: 'You can add HTML in title or description also!',
 
256
 
257
  positionBtnsDriver.highlight({
258
  element: '#position-btn-top',
259
+ showButtons: false,
260
  popover: {
261
  title: 'Did you know?',
262
  description: 'You can add HTML in title or description also!',
 
276
 
277
  htmlDriver.highlight({
278
  element: '#single-element-with-popover-html',
279
+ showButtons: false,
280
  popover: {
281
  title: '<em>Tags</em> in title or <u>body</u>',
282
  description: 'Body can also have <strong>html tags</strong>!',