Posts by Bruno Henrique • 52 points
12 posts
-
0
votes0
answers32
viewsQ: Typescript interface: Only one record per index
How to create an interface capable of only logging 1:1 in the IAgendaConfig through the attribute IAgendaDia.diaSemana (Prevent if there is no day of the week or if there is a duplicate on…
-
1
votes1
answer127
viewsA: How to pass an array and the array set by the value of the Provider (CONTEXT - TYPESCRIPT - REACT)
I obtained a solution through the English stackoverflow. was as follows: import React from "react"; interface List { name: string; setor: string; ramal: number; } interface ListContextValue { list:…
-
0
votes1
answer127
viewsQ: How to pass an array and the array set by the value of the Provider (CONTEXT - TYPESCRIPT - REACT)
How to pass the value of the list and sector? import React from "react"; interface Lista { nome: string, empresa: string, ramal: number } const listaInicial: Lista = { nome: "", empresa: "", ramal:…
-
1
votes2
answers158
viewsA: How to receive a function in the onClick of a component
To call a component event in React passed by props use as follows: App.js import React from "react"; import "./styles.css"; import Button from "./container/Button"; export default function App() {…
reactanswered Bruno Henrique 52 -
-1
votes1
answer117
viewsQ: Assigning Style CSS to brother component (active)
How to make calling the action . Burger:active change the style of the menu component on the same hierarchical level Components/Nav/index.js import React from "react"; import { NavContainer } from…
-
-2
votes1
answer21
viewsQ: (REACT) Should I compose only the repeating tags?
As the title itself says: Should I compose only the repeating items? an example: <navbar> <a href="LINK"> <img src="imagem.jpg" alt="Minha Figura" /> </a> <ul>…
-
-3
votes2
answers149
viewsA: How to separate obtained Loadhtml results
Good morning Gonçalo! A Friend here at the Site asked a similar question, maybe it solves your problem... The following solution has been proposed: function tdrows($elements) { $str = ""; foreach…
-
0
votes2
answers144
viewsA: Passing the value of an input
How you are picking a post variable in a . html file? I made an example code of how to send and receive by POST. index php. <?php $teste = $_POST["teste"]; if (!empty($teste)) { echo…
-
0
votes2
answers167
viewsA: Run PHP function with onclick()
Good afternoon Felipe! Maybe I’m not the most recommended person to answer your question, but I think it’s impossible to make javascript run function in php directly... I hope someone can tell if…
-
1
votes3
answers339
viewsA: How to convert the number of hours into date format in r
To turn decimal hour into hour, just keep the amount of hour and multiply the minutes by 60. Example: 1.50 I keep the 1 and take the minutes as 0.50 and then multiply by 60... so it becomes 30, now…
-
0
votes1
answer28
viewsA: How to identify weekly clients that appear in one table and not another in sql?
Good evening Rogério! I could not understand very well the problem... Check if this is what you need: The simplest would be to create a job in your database that runs 1 time a week and put the query…
-
-2
votes2
answers144
viewsA: Passing the value of an input
Good night Guito! All right? Try replacing "submite" with "Submit". <button type="submit">clique</button>