Skip to content

Commit 8e083d2

Browse files
committed
tweak(ui): allow size changing on spinner
1 parent 0672562 commit 8e083d2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/UI/Components/Spinner.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ const Component = use('util.Component');
33
export default def(class Spinner extends Component {
44
static ID = 'ui.component.Spinner';
55

6-
static PROPERTIES = {}
6+
static PROPERTIES = {
7+
size: {
8+
value: 24,
9+
},
10+
}
711
// static RENDER_MODE = Component.NO_SHADOW;
812

913
create_template ({ template }) {
10-
console.log('template?', template);
14+
const size = '' + Number(this.get('size'));
1115

1216
template.innerHTML = /*html*/`
1317
<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">
1519
<title>circle anim</title>
1620
<g fill="#212121" class="nc-icon-wrapper">
1721
<g class="nc-loop-circle-24-icon-f">

0 commit comments

Comments
 (0)