P
P
panikev2019-12-08 06:36:04
Vue.js
panikev, 2019-12-08 06:36:04

How to assign a method to the selected element?

Hello! Please tell me how to organize the launch of a certain method when you click on the "generate graph" button after selecting an element from the list (screen in attachment)
here is a piece of code

<md-card-content>
         <div class="md-layout md-gutter">
      <div class="md-layout-item">
        <md-field>
          <label for="movie">график</label>
          <md-select v-model="graph" name="graph" id="graph">
            <md-option value="Summary_Invoices">Счета</md-option>
            <md-option value="Summary_Sales">Продажи</md-option>
            
          </md-select>
        </md-field>
        {{graph}}
      </div>

5dec6f5b31484789167655.jpeg5dec6f5fb018e272651525.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question