All Questions
Tagged with updates javascript
137
questions
2
votes
3
answers
2k
views
TextInput in FlatList Item
I have a problem like picture below:
Text
As you guy can see I have info on every item: name and stock. Now I want to update stock on single item by type a number to text Input But when I type 3 into ...
0
votes
0
answers
41
views
DOM update incomplete in D3 when used with React
I have a problem updating the DOM elements in D3 in a React Component.
I have a component which gets data from a Slider in the main App.
The slider filters the data, removing or adding elements. When ...
0
votes
2
answers
1k
views
Angular7 Ng-Multiselect-dropdown Its Adding Dynamically but not updating
<ng-multiselect-dropdown
[settings]="settings"
name="cuisine"
[placeholder]="'select '"
[(ngModel)]="data1"
...
1
vote
0
answers
26
views
I can't add a new Row to an inline crud table once i get live data
I am trying to create an inline create and edit function on a table in angular, when i click on 'add', a new row with empty input fields is supposed to be created. works well on mock data but wont ...
0
votes
0
answers
465
views
Eclipse Javascript syntax highlighting broken after update?
After the recent Eclipse update (Version 4.17.0, Build 20200910-1200) the syntax highlighting for Javascript files is not working any longer. Furthermore the *.js file association and the Textmate ...
0
votes
1
answer
293
views
How to update angular component variable in 'then'
I would like to wait till angComponent.gridApi does not have the value undefined.
I'm not sure, but I think the variable angComponent doesn't update.
cy.getAngularComponent(tableGrid).then((...
0
votes
3
answers
1k
views
Updating a file contents with Google Drive v3 (JavaScript)
I'm trying to update the file contents of a file that already exists in Google Drive using JavaScript and the v3 API:
https://developers.google.com/drive/v3/reference/files/update#http-request
says ...
0
votes
0
answers
392
views
Attempted import error: 'CardAction' is not exported from '@material-ui/core'
I'm working on a react app and I'm trying to import CardAction from @material-ui but then:
Attempted import error: 'CardAction' is not exported from '@material-ui/core'.
So obviously I went to ...
1
vote
1
answer
2k
views
Element text not changing when passing selected textContent and new value to an update function
I'm creating a CRUD page where the user can add, delete and edit text, but I have an issue in updating the text after I select it for edit.
In editText function when I click the edit button the text ...
0
votes
1
answer
1k
views
JS (template Literal-) generated html, updates the DOM? [duplicate]
When generating HTML with JavaScript, is it better to use the annoyingly verbose
document.createElement("p")...
(as seen here: https://www.w3schools.com/jsref/met_document_createelement.asp )
or is ...
3
votes
6
answers
2k
views
When to use functional update form of useState() hook, eg. setX(x=>x+1)
Normally when we need to update a state in a functional component, we do something like this:
function Example() {
const [count, setCount] = React.useState(0);
return (<div><p>You ...
0
votes
3
answers
211
views
javascript setTimeout in a while loop [duplicate]
Hello i want to have 4 timeOuts to update balls positions because the balls don't go at the same speed.
here's a part of my code:
var i=1;
while(i<=5)
{
console.log(i);
...
2
votes
1
answer
480
views
UpdateMany document with array of objects in mongodb
I have a mongodb collection which looks like this
[
{
pId: "p1",
apikey: "a2",
count: 0
},
{
pId: "p2",
apikey: "...
0
votes
1
answer
29
views
when i push the button again the information will be updated not added
How to change my code, when I push the button again the information is adding to previous, I need that when I push the button the information updates.
document.querySelector(".city-select&...
1
vote
3
answers
199
views
Modify object value in array inside map
Trying to modify object value in array on condition on some arrays the override does not work, here is my snippet
const removeAction = (target, array, name) => {
let mutation = JSON.parse(...