@ -87,7 +87,7 @@ DropdownPanel.prototype.update = function (_data, _header) {
this . view . querySelector ( '.dropdownpanel .dropdowncontent' ) . style . display = 'block'
this . view . querySelector ( '.dropdownpanel .dropdownrawcontent' ) . innerText = JSON . stringify ( _data , null , '\t' )
if ( ! this . displayContentOnly ) {
this . view . querySelector ( '.title div.btn' ) . style . display = 'block'
this . view . querySelector ( '.title div.btn-sm ' ) . style . display = 'block'
this . view . querySelector ( '.title span' ) . innerText = _header || ' '
}
this . message ( '' )
@ -108,13 +108,14 @@ DropdownPanel.prototype.render = function (overridestyle, node) {
}
overridestyle === undefined ? { } : overridestyle
var self = this
var title = ! self . displayContentOnly ? yo ` <div class=" ${ css . title } title">
var title = ! self . displayContentOnly ? yo ` <div class=" ${ css . title } py-0 px-1 title">
< div class = "${css.icon} fas fa-caret-right" onclick = $ { function ( ) { self . toggle ( ) } } > < / d i v >
< div class = "${css.name}" onclick = $ { function ( ) { self . toggle ( ) } } > $ { this . name } < / d i v > < s p a n c l a s s = " $ { c s s . n a m e D e t a i l } " o n c l i c k = $ { f u n c t i o n ( ) { s e l f . t o g g l e ( ) } } > < / s p a n >
< div onclick = $ { function ( ) { self . copyClipboard ( ) } } title = 'raw' class = "${css.eyeButton} btn far fa-clipboard" > < / d i v >
< div onclick = $ { function ( ) { self . copyClipboard ( ) } } title = 'raw' class = "${css.eyeButton} btn-sm far fa-clipboard" > < / d i v >
< / d i v > ` : y o ` < d i v > < / d i v > `
var contentNode = yo ` <div class='dropdownpanel ${ css . dropdownpanel } ' style='display:none'>
var contentNode = yo `
< div class = 'dropdownpanel ${css.dropdownpanel}' style = 'display:none' >
< i class = "${css.refresh} fas fa-sync" aria - hidden = "true" > < / i >
< div class = 'dropdowncontent' > $ { node || content } < / d i v >
< div class = 'dropdownrawcontent' style = 'display:none' > < / d i v >