Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public mounted(): void {
const wrapperElement = this.$el as HTMLElement;
this.$_nativeInfiniteGrid = new NativeInfiniteGrid(wrapperElement, {
...this.options,
renderExternal: true,
});
this.$_wrapperElement = wrapperElement;
this.$_layout = "";
this.$_bindEvents();
const nativeIG = this.$_nativeInfiniteGrid;
nativeIG.setLayout(this.layoutType, this.layoutOptions);
if (this.status) {
nativeIG.setStatus(this.status, true, this.$_getElements());
} else {
nativeIG.beforeSync(this.$_toItems());
nativeIG.layout(true);