Posts by felipenoka • 85 points
10 posts
-
0
votes1
answer1765
viewsQ: How to change the state of the parent component by the child component?
I have a modal (child) component that I want to display information by clicking on the parent component object. Son: import React, {Component} from 'react'; import {Modal, Text, View, Button} from…
-
0
votes3
answers812
viewsA: How to style results made with Javascript?
Add style line after writing document. document.write("Multiplicando os dois valores teremos: " + multiplicacao + "<br>Dividindo os dois valores teremos: " + divisao);…
-
0
votes1
answer150
viewsA: How to add active class on a onepage site?
I’m not sure in which action you intend to change the class to active. try this: $(function () { var nav = $('#navbar'); $(window).scroll(function () { if ($(this).scrollTop() > 500) {…
-
1
votes1
answer396
viewsQ: Create variable with an object property - Angular
I am trying to create a variable to set one of the properties of an object obtained by the get method. When I give console no subscribe I recover the value of the array, but I’m having difficulty…
-
3
votes1
answer57
viewsA: How to get a div inside with css
You can try to use only the border-Radius of the direction you want to create the Radius. try this: .div1 { background-color: red; width: 300px; height: 400px; } .div2 { background-color: green;…
-
0
votes1
answer444
viewsQ: Add and Remove class of an element with scroll - Angular
I’m trying to make the navbar have a "Fixed-top" class when moving the scroll and removing the class when it’s at the top of the page. I wrote the script below but it’s not working. import {…
-
1
votes1
answer3091
viewsQ: Change element color with React
I am trying to change the color of an element based on the status string. Ex.: Green to 'Active', Red to 'Inactive', Gray to 'Blocked' I managed to do this in JS Puro, but I’m having trouble making…
-
0
votes1
answer38
viewsQ: Dynamic divs with local dataStorage - Jquery
I am trying to create a "table" with Divs with dynamically retrieved data from localStorage. I can recover the data and create the elements, but not in the desired way. The data is being duplicated…
-
1
votes1
answer65
viewsQ: Is it possible to create object inside object in a constructor class?
I am trying to create a Client class that has the following parameters: { "data": { "name": "Yuri Moura", "cpf": "123.456.789-00", "status": "Ativo", "contact": { "email": "[email protected]", "tel":…
-
0
votes2
answers169
viewsQ: Recover value from input data
How do I recover input data value? My goal is value to match the date selected in the field. Filter field: <div class="filt-nam"> <h5>Filtrar Itinerários por Data: </h5>…