Help others by sharing your knowledge.
AnswerRequest clarification before answering.
HI
there are many ways to do this. One way is the extend the button control.
Button.extend("AnimateButton",{
renderer: {},
onAfterRendering: function() {
if (Button.prototype.onAfterRendering) {
Button.prototype.onAfterRendering.apply(this, arguments);
}
var icon = this.$().find(".sapMBtnIcon");
if (icon.length > 0) {
this.iconRotateAngle = 45;
this.rotateIcon = function() {
icon.css("transform", "rotate(" + this.iconRotateAngle + "deg)");
this.iconRotateAngle += 45;
if (this.iconRotateAngle >= 360) {
this.iconRotateAngle = 0;
}
setTimeout(function() {
this.rotateIcon();
}.bind(this), 500);
}
setTimeout(function() {
this.rotateIcon();
}.bind(this), 500);
}
}
});
demo: https://jsbin.com/rodozud/edit?html,js,output
Thanks
Dennis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.