succinct icon indicating copy to clipboard operation
succinct copied to clipboard

Destroy succinct

Open gNesh01 opened this issue 8 years ago • 1 comments

Hi,

Is there any way to destroy succinct? Because I need it just on hover state, so when mouseleave I would like to destroy succinct.

Thanks

gNesh01 avatar Jul 19 '16 10:07 gNesh01

The best way is stock the innerHTML in a variable before use Succinct.

var content = $('.element').html() // or .text()

if (condition) {
   $(element).succinct({
      size: 120,
   })
} else {
   $('element').html(content)
}

firestar300 avatar Sep 03 '18 09:09 firestar300