Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
How do I access the value of state within a redux store in javascript?

I am trying to use Grid.js to create a table of data in a Flask app I am building. Grid.js has a checkbox plugin which uses the Redux architecture so that each selection instance keeps the list of selected rows within a Store.

I am following the example code located here: https://gridjs.io/docs/plugins/selection/selection-events

My code can be seen below:

grid.on('ready', () => {
          // find the plugin with the give plugin ID
          const checkboxPlugin = grid.config.plugin.get('selectRow');
          // read the selected rows from the plugin's store
          checkboxPlugin.props.store.on('updated', function (state) {
            console.log('checkbox updated', state);
          });
        });
      </script>

<form method="POST" action="{{ url_for('about') }}">
  <button name="activity" class="btn btn-danger" type="submit" value={{state}}></button> 
</form>

When I select a checkbox the console.log displays the information I want to access in the console. However I do not know how to assign it to a variable so that I can then use a button to send it back to my Flask app in python using a POST form.

Any help would be greatly appreciated.

This is a screenshot of my table, checkbox and value of 'state' which can be seen in the console

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda