dimanche 2 décembre 2018

Get the label of multiselect checkbox when selected

So i have a todos list and i need to add a checkbox for each todo and then to get the todo value when that checkbox is selected

My application.hbs

        
      <li class="list_shopping li_num_0_1">

                            <div class="col_md_3_list">
                                <div class="cont_text_date">
                                    <label class="container">
                                                       
                                        
                                        <span class="checkmark"></span>
                                    </label>
                                </div>

                            </div>
                        </li>
                        

My application.js

 export default Route.extend({
      newTodo: "",
      actions: {
        myChangeAction() {
          alert("hey");
        },
      model() {
        return this.store.findAll("todo");
      }
    });

Any ideas please ? I ve tried a lot of solutions but none of them worked https://guides.emberjs.com/v1.10.0/getting-started/marking-a-model-as-complete-incomplete/ https://ember-twiddle.com/b0e9cab25764e50c122ca482776bdae3?openFiles=routes.application.js%2C




Aucun commentaire:

Enregistrer un commentaire