open detail modal when clicking on items in the table view
This commit is contained in:
		
							parent
							
								
									388b243955
								
							
						
					
					
						commit
						0b93031bfc
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -27,7 +27,7 @@
 | 
			
		|||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr v-for="item in internalItems" :key="item[keyName]">
 | 
			
		||||
            <tr v-for="item in internalItems" :key="item[keyName]" @click="$emit('itemActivated', item)">
 | 
			
		||||
                <td v-for="(column, index) in columns" :key="index">{{ item[column] }}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,6 +18,7 @@
 | 
			
		|||
                    :columns="['uid', 'description', 'box']"
 | 
			
		||||
                    :items="loadedItems"
 | 
			
		||||
                    :keyName="'uid'"
 | 
			
		||||
                    @itemActivated="openModalWith($event)"
 | 
			
		||||
                />
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue