Category "javascript"

A x times x grid that keeps expanding

Okkkayy, hi and welcome inside my head.. i want to make a 7x9 grid layout as a "starting point" like this +/- then i want to add 3 rows every like 6 hours or s

How to render a form in a grid row

I'm trying to render a form within a custom row grid without success. handler: function (button, record, pressed, eOpts) { var grid = this.up('grid');

How to get an item from redux store with redux saga

So I have fetched the data from an API and stored it into my Redux store. It's an array of objects, containing 100ish objects. On the front end I am displaying

Prototype & Extend in SAPUI5 (Component.js)

I was trying to implement Component.js in my SAPUI5 application but unable to understand .extend & .prototype.init.apply method in below piece of code. sap

What is the preferred declaration convention for objects or arrays: const or let?

I'm not asking what's technically possible; I know you can do const a = []; const b = {}; a.push['sup']; b.test = 'earth'; What I'm wondering is whether ther

ESlint - Error: Must use import to load ES Module

I am currently setting up a boilerplate with React, Typescript, styled components, webpack etc. and I am getting an error when trying to run eslint: Error: Mus

HTML2Canvas does not render full div, only what is visible on screen?

I'm trying to use HTML2Canvas to render the contents of a div. Here is the code: var htmlSource = $('#potenzial-page')[0]; $('#btn').on("click", function() {

m3u8 source for video.js error: "No compatible source and playback technology were found."

I have a m3u8 source that I am trying to play via a video.js player. When I try it, I see a black screen and the console log has the message " "No compatible so

How to change the default screen background color of all the pages in React JS(Next JS) using tailwind CSS

I am trying to change the default screen background colour of all the pages of the web application. Technologies I used: React JS Next JS Tailwind CSS I want to

wp_localize_script multiple times from Shortcode

I have a shortcode [tips] in which at the end I'm doing: wp_enqueue_script( "tips", plugins_url( "/tips/js/tips.js", PATH ), array("jquery"), TIPS_VERSION, tru

Add custom style inside DataGrid Toolbar's popup component Material-UI

I'm creating a custom Data Grid Toolbar component by modifying existing Grid Toolbar components from Material-UI. Here is the official example for the Grid Tool

How to get the filename from a file downloaded using Javascript Fetch API?

In my Javascript client, I'm using Fetch API to call the server to retrieve a server-generated file. I'm using the following client-side code: var _url = "";

Algorithm to return all combinations of 3 combinations from a array of length 6 without the number appearing with the same set of numbers

I was trying to write a algorithm in javascript that returns all the possible 3 digit numbers numbers from a given array of length 6 For Example var arr = [1, 2

Quasar Q-table not updating with ref() array

When I update ref() array, q-table not updating. I am initiating the rows ref with the "getApplications()" function. Then when i call the reviewed() function fr

Is there a way to know if the user is on a particular heading, paragraph or a div etc

I was trying to find a way to start an animation only if the user is on it, at first I tried getting screen size, and its works, but its not an optimal solution

ESLint: 8.0.0 Failed to load plugin '@typescript-eslint'

Could you help me, I've got this error when I try building a project? Oops! Something went wrong! :( ESLint: 8.0.0 TypeError: Failed to load plugin '@types

Vue how to fallback to default rendering with the render function?

Looking at this simple hello world html page <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="https://cdn.jsde

Reference JS object through concatenation

I am trying to call an object. The way I am currently doing it: var key = object_0 The way I'd like to do it var key = "object_" + questionId; But when

Could not find a declaration file for module 'vue-xxx'

Any 3rd party Vue.js library that I try to add to my project, throws the following error: Could not find a declaration file for module 'vue-xxx' I have tried

Why my changes are not displaying to the browser?

(this a long text but it's necessary for you to understand what I'm struggling with) I've been trying to find a solution to this but I just couldn't find any in