Topic: MDBVue version 4.9.0 unable to find tags

pbanavara free asked 4 years ago


I have the latest version of mdbvue and most of the components that I try to use are not found. I get the warning

Unknown custom element: <tbl> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

I have tried tbl, mdb-list-group tags with no avail. Are these pro components ?

Here is my template file

<template>
<div id="main" class="container container-fluid">
<div class="row">
<tbl btn responsive striped>
<th></th>
<tr>
<td>
<button type="button" class="btn btn-indigo btn-sm m-0">Button</button>
</td>
</tr>
<tr>
<td>
<button type="button" class="btn btn-indigo btn-sm m-0">Button</button>
</td>
</tr>

</tbl>

</div>
</div>
</template>

<script>
import { tbl } from 'mdbvue';
import { mdbListGroup, mdbListGroupItem } from 'mdbvue';
</script>


Jakub Strebeyko staff answered 4 years ago


Hi there @pbanavara ,

Naah, these are free! I think the issue here is that they do not get registered locally. Try having your <script> arranged like so:

<script>
import { Tbl, mdbListGroup, mdbListGroupItem } from 'mdbvue';

export default {
  name: "MyTestPage",
  components: {
    Tbl,
    mdbListGroup,
    mdbListGroupItem
  }
}
</script>

You can find some more details on registration here

Good day to you, Sir!
Kuba



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 4.8.2
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No