Notes/src/public/app/widgets/spacer.js

17 lines
352 B
JavaScript
Raw Normal View History

2021-05-17 21:46:18 +02:00
import BasicWidget from "./basic_widget.js";
2021-05-24 22:29:49 +02:00
const TPL = `<div class="spacer"></div>`;
2021-05-17 21:46:18 +02:00
export default class SpacerWidget extends BasicWidget {
2021-05-24 22:29:49 +02:00
constructor(growIndex = 1000) {
super();
this.growIndex = growIndex;
}
2021-05-17 21:46:18 +02:00
doRender() {
this.$widget = $(TPL);
2021-05-24 22:29:49 +02:00
this.$widget.css("flex-grow", this.growIndex)
2021-05-17 21:46:18 +02:00
}
}