Posts by matheus ale da silva • 132 points
18 posts
-
0
votes2
answers54
viewsA: Using JSON files with Javascript on the web
If you are using Node just use require in the json file const array = require('path./file.json'); in the browser you can use the fetch or ajax to request the file on the server: const array = await…
javascriptanswered matheus ale da silva 132 -
1
votes1
answer176
viewsA: Real-time website with Node.JS
It doesn’t reflect when updating the pq page you’re taking the data when the app starts. see: // isso é executado apenas uma vez, assim que o arquivo é importado let section1; (async function () {…
-
0
votes1
answer104
viewsA: Python script that reads a Json and converts to a javascript
You can do something like: regexp = [] url = '' for key in json: for value in json.get(key, []): url = value.get('type') regexp.append(value.get('base_url')) regexp = str('|').join(regexp) js_script…
-
1
votes1
answer39
viewsA: Angular - how to pass given to component differently when clicking on different buttons?
If I understand well what you want to do is use the same component to create and edit data using only one component in the template!? if that’s what you can do: // Controller do componente de…
-
0
votes1
answer213
viewsA: Is it possible to dynamically remove a directive with Vuejs?
You can change the component if you don’t have a mask. <v-text-field v-if="mask" v-mask="'XX:XX'" ></v-text-field> <v-text-field v-else ></v-text-field>…
-
1
votes1
answer83
viewsA: Doubt about Vue.js extended layout
Well what you want to do is create routes in your application. This is quite easy to do even you are already using. 1st what is v-layout? Nothing more than the name you gave the base component. you…
vue.jsanswered matheus ale da silva 132 -
0
votes1
answer73
viewsA: Passing properties by events
I assume you’re using the bootstrap-Vue library. The component in question (b-modal) sets out the methods of hide and show see the example in the official documentation:…
vue.jsanswered matheus ale da silva 132 -
1
votes1
answer76
viewsA: How to "misalign" Ivs with Flexbox?
You have to make your flex container a column and allow flex items to re-arrange (flex-wrap): div.cont { display: flex; align-items: flex-start; flex-flow: column wrap; justify-content: flex-start;…
-
0
votes1
answer121
viewsA: Input value property does not work with Angular
Imports the module FormsModule and uses [(ngModel)] in place of value.
-
0
votes1
answer334
viewsA: Paths in separate files with Vuejs
You can use the require.context of the webpack see the documentation here. basically their maimRutes.js will join all the default defaults of your files .+\.route.js. basically that: const routes =…
vue.jsanswered matheus ale da silva 132 -
1
votes2
answers45
viewsA: Show table data that will be active briefly with disabled attribute and also data that is already active?
You can pick up all the items $sql = "SELECT id,palavra from dicionario_basico where palavra LIKE '".$letter."%' ORDER BY palavra"; $sql2 = "SELECT DISTINCT(SUBSTR(palavra, 1, 1)) As abc from…
-
-1
votes3
answers66
viewsA: Get Function value in javascript
you could do something like that: data: () => ({ scroll: 0 }), created() { this.scroll = this.oldScroll > this.scrollY // ou this.store.dispatch ... } }…
-
0
votes2
answers110
viewsA: Pick dynamic variable
You are setting the img with the id (sponsive" id="trocarimg{{$id}}">) and is trying to recover using the class trocarimg change your js for this for (i = 0; i < string_array.length; i++) {…
-
0
votes2
answers48
viewsA: How do you make a left DIV the same height as a large right DIV?
You can set the image as background <body> thus does not need the lateral communes, just define the width of the div with the content as being smaller than the page type 70vw and margin: auto,…
-
0
votes2
answers113
viewsA: Problems with Reactiveforms at Angular
You created the Formgroup instance in the right way. searchForm = new FormGroup({ searchControl: new FormControl('') }); See the full documentation on:…
-
-1
votes5
answers280
viewsA: Breaking lines in a date attribute when displaying in front-end
You tbm can set the attribute value as a json with the whole array $BlobParams. This way focuses easier to recover the values in js.
-
0
votes2
answers2185
viewsA: how do I change the color of an html element based on its value using angular 1.6.4
You tbm could interpolate the status on ng-class and in your css you define the color instead of making this gigantic conditional in your template. html <td ng-class="item.status_indicacao"...…
-
1
votes1
answer79
viewsA: Drop down menu appears behind another object
sets the property z-index: 999 in <ul class="sub-menu". And puts the background-color: white tbm.
dropdownanswered matheus ale da silva 132