Posts by Ramon • 195 points
10 posts
-
0
votes1
answer154
viewsA: My checkbox is not ticking/unchecking
In the handleClick method, you do not need to invert the target.checked value because this value already comes with the right value ("inverted") when clicking the checkbox. Thus, you just need to…
-
2
votes1
answer3854
viewsA: Xios basic auth - how to pass user and password to the api?
In the Axios documentation, the method get receives only two parameters: the url and settings. In your code you are passing three. Your second parameter is an empty object ({}) and Axios is using it…
-
1
votes1
answer5078
viewsA: Pass information between components without Reactjs hierarchy
React uses a "top-down" approach to pass data between components. In this way, it is only possible to pass data to the child components. In your case to share data between sister components (Navbar…
-
-2
votes2
answers51
viewsA: How to clone an object in Fabricjs?
To clone an object (or more object) in Javascript you can use the method Object.assign(). const origem = { a: 1, b: 2 }; const destino = Object.assign({}, origem); console.log(origem, destino);…
-
0
votes2
answers172
viewsA: Trying to make a for on a Vue-js object
To loop a Javascript array there are basically three ways: 1. Javascript classic (using the for with a counter): const arrayExemplo = ['A', 'B', 'D']; for (let i = 0; i < arrayExemplo.length;…
-
0
votes2
answers48
viewsA: Help with query_post Wordpress function
It is not recommended to use the query_posts function. See what is said on wordpress documentation: Note that using this method can extend the page loading, since the main query is called more than…
-
4
votes1
answer7851
viewsA: consume Rest api with React and render the data in a table
When you need to consume data from an API it is recommended to request in the method componentDidMount, which is one of the life cycle methods of an React component. Also, you should not call the…
-
1
votes1
answer65
viewsA: $jQuery Easy Slider Numeric
Make the following modifications to the easySlider1.7.js file: Line 158 replace "t = dir" with "t = parseint(dir)" Line 195 replace "if(options.auto && dir=="next" && !clicked)" with…
-
1
votes1
answer246
viewsA: Progress bar for slide jcarousel
If you want to trigger the "click" event from the Next button of the Dashboard, then you can use the .trigger() jQuery. Thus, your code in the second "if" of the Starbar function would look like…
-
1
votes1
answer58
viewsA: How do I add this expense counter to my Woocommerce theme?
There is a plugin that does this: Woocommerce Cart Menu. This is compatible with Woocommerce, Easy Digital Downloads, Eshop, WP-Ecommerce eJigoshop. Link to the plugin: Woocommerce Menu Cart…