Posts by fabioxd20 • 160 points
10 posts
-
0
votes1
answer57
viewsQ: I need to save the image of fabricjs along with the objects
Hello, I’m trying to save the image of Fabric.JS along with the active objects, but I’m having a problem. I’m trying to use the: canvas.toDataURL('image/jpg') But when I try to run this error here…
-
0
votes1
answer141
viewsA: Edit modal record with Angularjs
Hello all right? Then the value you want to start in the input must be filled by ng-model, in it will occur the data-bind! From what I understand you load the initial value of an endpoint and want…
-
4
votes2
answers202
viewsA: Ngshow two parameters - Angularjs
Hello all right? A tip that can help is the following: <div class="col-sm-3 form-group" ng-show="isShowSetNull()"> <p>teste</p> </div> <script> function…
-
2
votes2
answers421
viewsA: Javascript - error callback is not defined
I made some adjustments to the code to ensure the callback function call regardless of errors or not, also added a parameter to it to validate errors, and changed the for by a filter.…
-
0
votes1
answer32
viewsQ: Add data to an object/image in Fabricjs
I need to add data to an object in Fabricjs and search for them again when exporting the canvas. Function I use to add an object: function _addImageObject(imageURL) { fabric.util.loadImage(imageURL,…
-
1
votes2
answers103
viewsA: How to check whether String[] Random Text is true or not
First thing you’ll need is to use the import java.util.Arrays , just below has a function that checks a string of the obj array and if it exists it goes in the hint array to look for the right hint.…
-
1
votes1
answer778
viewsA: Separate values from a JSON in multiple fields
Your JSON has an array with another JSON in it, in case the Array is branches, what you can do is move the elements of the array and put as attributes of the main JSON. import json original =…
-
0
votes3
answers1959
viewsA: Where should I really keep my JWT token?
Keeping JWT in localstorage is common, it’s good to just keep an eye out for the content that is saved in the token. Normally we save the object of the logged client, but it is good to be aware with…
-
2
votes2
answers131
viewsA: How to adjust an anchor button to stand next to a`select`field in Bootstrap?
<div class="col-xs-2"> <label class="small" for="ISSQN">Responsável ISSQN</label> <div style="display: flex; align-items: center;"> <select class="form-control"…
-
1
votes2
answers108
viewsA: Scope of variables in Javascript
I believe one can be used map in that case. let times = textArea.split("\n").map((linha) => { clube = linha.split(';'); time = clube[0]; estado = clube[1]; return new Time(time, estado); });…
javascriptanswered fabioxd20 160