Posts by Salatiel Queiroz • 395 points
12 posts
-
-1
votes3
answers128
viewsA: Lines with two items according to screen size, is it possible?
Testing using 50%: const styles = StyleSheet.create({ container: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'flex-start' }, cell: { width: 50% } });…
-
5
votes2
answers19646
viewsA: How to redirect to a route using onClick and React Router
As the most commonly used standard in Reactjs is to create Single Page Applications, you will need to use a library that creates the client(browser) side routes, as there is no server dictating the…
-
0
votes4
answers761
viewsA: How to simulate onclick checkbox
I can help you by showing you how you can do it with JS Vanilla: // Pega todos os elementos com a class .marcar const marcar = document.querySelectorAll('.marcar') //Transforma a HTMLCollection em…
-
1
votes2
answers56
viewsA: how to include javascript files in a javascript file?
Hello, it is not possible to do this type of include in JS. But you can use import and export to reuse code within another file. However, in an Ecmascript 6 feature not yet implemented in all…
javascriptanswered Salatiel Queiroz 395 -
1
votes1
answer164
viewsA: What is each of the "data types" of the DOM?
Given the html below I will explain the concepts: <html lang="pt-br"> <head> <title>Document Title</title> </head> <body> <div id="divPai"> <h1>Lista…
-
4
votes1
answer5766
viewsA: Difference between onClick commands in React
All do the same thing but some use a more current syntax. Case 1: onClick={() => this.onFunctionClickCall()} This is the newest template to write because you don’t need to give a "fix" to the…
-
1
votes1
answer345
viewsQ: Responsive typography (Flow Text css)
Well, I was studying on responsive texts and found the css class of Materialize that leaves the texts responsive according to the width of the screen. Open the source code to try to understand how…
-
6
votes3
answers3850
viewsQ: Elements with Css cut corners
I need to make elements with cut corners, like these squares. How can I do ?
-
0
votes2
answers261
viewsA: Affix on a dynamic sidebar
In your code you’re talking about when it rolls (top: 0) 0 pixels it will apply the fixed position. So in your CSS you have to define its position in the case: .budget-summary { top: 0; } *the…
-
3
votes1
answer2876
viewsQ: Problem installing Bower in windows
I installed the nodejs without problems. I ran this command and it was: npm -v 1.4.28 Right after I try to install Bower and I can’t: npm install -g bower After running this command appears this: I…
-
2
votes1
answer180
viewsA: Make text appear under box
Put in both elements display: block that they will stay under each other.
-
2
votes1
answer884
viewsQ: What to do to make this code work on mobile
I took this code ready to mount a fake menu off-canvas, it is working perfectly, but when I access by mobile the menu does not appear, what I need to do? $(".toggle-canvas").click(function () {…