Posts by Arthur • 93 points
10 posts
-
0
votes0
answers12
viewsQ: Backgroundimage not working on React
I have an application that has the image in the same component folder, as in the image: And I’m using the following inline code to put this image as background: function App() { // Imagem carregada…
-
0
votes1
answer55
viewsQ: Programmatically edit modal button actions
I am creating a button programmatically that once clicked, will call a modal, however, I would like as soon as they press the button inside the modal, the page restart and close this modal. How I do…
-
0
votes1
answer32
viewsQ: Return a list of values present in select
I made an interface where the user type a number and it is soon assigned to a value of select. The idea is that the user type a number and cannot type it again, but for this, I need that in each…
-
1
votes1
answer41
viewsQ: "this" inside Arrow Function used as a method of an object does not point to the object
The this of carro2 should not point to the context in which it was created (in the case within carro2)? Follow an example with the this of function normal and other with the Arrow: const carro = {…
javascriptasked Arthur 93 -
2
votes2
answers41
viewsQ: Within a method belonging to an object, the this of the called function does not point to the object
I have a function: let comparaComThis = function (param) { console.log (this === param) } And I have an object that calls this function: const obj2 = { consta(){ comparaComThis(obj2) } } The point…
-
2
votes1
answer63
viewsQ: Inside setInterval, "this" does not point to the function that called it
The context in which this Arrow was created was directly in the method setInterval, however the this points to the idade inside the object Pessoa, why? The this in Arrow is based on the context in…
-
0
votes1
answer144
viewsA: Pointing to an FXML file in javafx
Good, I resolved pointing the controller file inside the FXML file <AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml/1"…
-
0
votes1
answer144
viewsQ: Pointing to an FXML file in javafx
I created a project from scratch, was without any folder and opened the window perfectly, but when I put inside 7 folders and then started not to load. Does anyone know how I would point? I’m using…
-
2
votes1
answer61
viewsQ: How does this code of turning the number into binary work?
I’m trying to understand this function that calls itself, but it doesn’t enter into the head as if it can transform a number into binary without at least a repetition, as it works? static int…
-
0
votes1
answer200
viewsQ: Transfer an object within a class method to another class
Well, I know I’m doing it in the least practical way, but I’d like to know how I transfer an instance from one class to another class. I’m creating an algorithm in which I’m going to call a method…