
gwt.material.design.addins.client.bubble.resources.js.bubble.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-material-addins Show documentation
Show all versions of gwt-material-addins Show documentation
Extra Components of GWT Material Framework
$.fn.bubble = function (options){
var position = options.position,
color = options.color;
triangle = $(this).find('.triangle');
if(position === 'left'){
triangle.css('borderRightColor', color);
}else if(position === 'right'){
triangle.css('borderLeftColor', color);
}else if(position === 'top'){
triangle.css('borderBottomColor', color);
}else if(position === 'bottom'){
triangle.css('borderTopColor', color);
}
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy