Skip to content

Commit

Permalink
Add library files.
Browse files Browse the repository at this point in the history
  • Loading branch information
gederajeg committed Aug 2, 2023
1 parent 7f4b12e commit bc99ebd
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
39 changes: 39 additions & 0 deletions holle-list-2023-05-23_files/libs/tippy-binding-0.1.0/tippy 2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
HTMLWidgets.widget({

name: 'tippy',

type: 'output',

factory: function(el, width, height) {

var id;

return {

renderValue: function(x) {

id = el.id

if(x.hasOwnProperty('element')){
tippy('#' + x.element, x.opts);
} else if(x.hasOwnProperty('class')){
if(x.hasOwnProperty('opts')){
tippy('.' + x.class, x.opts);
} else {
tippy('.' + x.class);
}
} else {
el.innerHTML = x.text;
el.setAttribute("data-tippy", x.tooltip);
tippy('#' + id, x.opts);
}

},

resize: function(width, height) {

}

};
}
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc99ebd

Please sign in to comment.