28 lines
459 B
JavaScript
Executable File
28 lines
459 B
JavaScript
Executable File
Htk.Spinner = new Class
|
|
({
|
|
Extends: Htk.Widget
|
|
,Tag: 'htk-spinner'
|
|
|
|
,initialize: function (props)
|
|
{
|
|
var loader = this.createElement ('div');
|
|
loader.className = 'htk-spinner';
|
|
|
|
var spin = document.createElement ('div');
|
|
loader.appendChild (spin);
|
|
|
|
this.spin = spin;
|
|
this.parent (props);
|
|
}
|
|
|
|
,start: function ()
|
|
{
|
|
Vn.Node.addClass (this.spin, 'spinner');
|
|
}
|
|
|
|
,stop: function ()
|
|
{
|
|
Vn.Node.removeClass (this.spin, 'spinner');
|
|
}
|
|
});
|