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 Toolbar components: If we click one of the Grid Toolbar components, it will show a popup/popper as seen in the screenshot below. What I want to do i…
Category: Questions
How to write to enviornment variables on Heroku
I have made a website meant to me used by only one person, so I want to dynamically write to .env file on Heroku without it resting, because this is meant only for one person. I don’t want to deal with a database. Something like this: Answer You could use the heroku api to do that but it will have
Nuxt/Vue – How do you put a @blur in the vue-bootstrap-typeahead?
I’m trying to trigger a function when I leave an input, but how I configured the input is by using vue-bootstrap-typehead. By inspecting the input element in the DOM it would be structured like this: and this is my code: I’ve tried adding the id=”myElement” on the typeahead itself but …
MFA Firebase & React Flow
I am trying to enroll a user with Multifactor authentication with Firebase following this setup guide: https://cloud.google.com/identity-platform/docs/web/mfa I am struggling to figure out how to have my function wait for the user inputted verification code after the code is sent to the user’s phone (I …
PDFTron Webviewer Open PDF with a user password
I am trying to use the PDFTron WebViewer within a Blazor application to open a PDF with a user password. I would like to do this without a user dialog but I am can’t figure out how to. I am calling the initWebView function with the url path to the passworded pdf. This downloads the document and displays…
Expand a variable in a MongoDB aggregation pipeline
In a Typesctipt code, I would like to use a varible value in an aggregation pipeline in MongoDB; the problem is that the “keyToCheck” field is a variable that is set by the Typescript code and, therefore, can change based by many conditions. Is there a way to expand the variable “keyToCheck&…
Display multiple random images rather than just the one
The code below displays one image from an array at random. I’ve been trying to change it without success to show all the images from the array at random. I’ve used a while loop to generate the random function. The random function works and randomises the whole array but only on image is returned. …
removing or replacing comma from string imported from CSV Data where object is between bracket or any other Regex Javascript [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I have searched in many places could not find a solution. I am importing Data from CSV file a…
How to detect a frozen video stream in WebRTC
Unfortunately, from time to time when making a one-on-one video call using react-native-webrtc one of the two video streams freezes or becomes black. Is there a way to detect when that happens programmatically? Thx in advance! Answer It looks like each video track has a listener that fires as soon as the stre…
assign value to select in methods in vuejs?
How do I change the <a-select-option>s when I select a radio button? Answer You can compute the <a-select>’s options based on the <a-radio-group>’s value. Instead of the change-event handler, use a v-model directive on the <a-radio-group> to store the selected brand, and on…