Posts by Jorge Iten Jr • 221 points
5 posts
-
2
votes2
answers45
viewsA: Sum selected items
Convert to float: function calculaTotal() { var total = 0; if ($(".iten-preco").length > 0) { $(".iten-preco").each(function(){ total += parseFloat($(this).text().replace(/\./g, '').replace(/,/g,…
-
2
votes1
answer20
viewsA: Type "Contasml" is Missing from type Contasml[]: length, pop, Concat and 26 more
You are assigning an object to a variable declared as Array. Whereas you want an array, update your method to the following: cancelaOperacaoContaML(){ this.contasML = new Array<ContasML>(); }…
-
0
votes1
answer41
viewsA: Title on the back button
The navigationOptions can also be used as a function: static navigationOptions = ({navigation}) => { const {state} = navigation; return { title: state.listaItem ? `{this.state.listaItem.cidade} -…
-
1
votes1
answer356
viewsA: Cannot resolve method
Are you calling the getDescricao and getTarefa of List and not your task object. Try it this way: for(Tarefa tarefa: tar) { titulo.setText(tarefa.getTitulo());…
-
1
votes1
answer97
viewsA: Load the state value into the currency formatted DidMount component
Passes the initial value on the property defaultValue of the component <IntlCurrencyInput>. Then treat the value change in your function handleChangeSalarioFormato: <IntlCurrencyInput…