File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,19 @@ const Component = use('util.Component');
3
3
export default def ( class Spinner extends Component {
4
4
static ID = 'ui.component.Spinner' ;
5
5
6
- static PROPERTIES = { }
6
+ static PROPERTIES = {
7
+ size : {
8
+ value : 24 ,
9
+ } ,
10
+ }
7
11
// static RENDER_MODE = Component.NO_SHADOW;
8
12
9
13
create_template ( { template } ) {
10
- console . log ( 'template?' , template ) ;
14
+ const size = '' + Number ( this . get ( 'size' ) ) ;
11
15
12
16
template . innerHTML = /*html*/ `
13
17
<div>
14
- <svg style="display:block; margin: 0 auto; " xmlns="http://www.w3.org/2000/svg" height="24 " width="24 " viewBox="0 0 24 24">
18
+ <svg style="display:block; margin: 0 auto; " xmlns="http://www.w3.org/2000/svg" height="${ size } " width="${ size } " viewBox="0 0 24 24">
15
19
<title>circle anim</title>
16
20
<g fill="#212121" class="nc-icon-wrapper">
17
21
<g class="nc-loop-circle-24-icon-f">
You can’t perform that action at this time.
0 commit comments