Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hoverOnHalfIcon(element: HTMLElement) {
return Yox.string.has(element.className, 'half')
}
},
inlineStyle: function () {
var gap = 0;
var style = '';
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')) {
style += ';';
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2;
}
return style + "margin-left: -" + gap + "px; margin-right: -" + gap + "px;";
}
}
updatePosition() {
if (supportTransform) {
return
}
const append = this.$refs.append as HTMLElement
if (!append || !Yox.string.has(append.className, '${prefix}badge-text-append')) {
return
}
append.style.marginLeft = -0.5 * append.offsetWidth + 'px'
append.style.marginTop = -0.5 * append.offsetHeight + 'px'
}
},
inlineStyle(): string {
let gap = 0
let style = ''
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')
) {
style += ';'
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2
}
return `${style}margin-left: -${gap}px; margin-right: -${gap}px;`
}
}
inlineStyle: function () {
var gap = 0;
var style = '';
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')) {
style += ';';
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2;
}
return style + "padding-left: " + gap + "px; padding-right: " + gap + "px";
}
},
inlineStyle(): string {
let gap = 0
let style = ''
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')
) {
style += ';'
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2
}
return `${style}padding-left: ${gap}px; padding-right: ${gap}px`
}
},
inlineStyle(): string {
let gap = 0
let style = ''
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')
) {
style += ';'
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2
}
return `${style}margin-left: -${gap}px; margin-right: -${gap}px;`
}
}
inlineStyle: function () {
var gap = 0;
var style = '';
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')) {
style += ';';
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2;
}
return style + "padding-left: " + gap + "px; padding-right: " + gap + "px";
}
},
inlineStyle(): string {
let gap = 0
let style = ''
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')
) {
style += ';'
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2
}
return `${style}padding-left: ${gap}px; padding-right: ${gap}px`
}
},
inlineStyle(): string {
let gap = 0
let style = ''
if (this.get('style')
&& Yox.string.trim(this.get('style'))
&& !Yox.string.endsWith(style, ';')
) {
style += ';'
}
if (this.get('gutter')) {
gap = +this.get('gutter') / 2
}
return `${style}padding-left: ${gap}px; padding-right: ${gap}px`
}
},