Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom component in columnComponent #318

Open
mossaudi opened this issue Jun 27, 2021 · 1 comment
Open

Use custom component in columnComponent #318

mossaudi opened this issue Jun 27, 2021 · 1 comment

Comments

@mossaudi
Copy link

`error NG8002: Can't bind to 'ngClass' since it isn't a known property of 'div'.

259 <div class="progress-bar l-bg-cyan" [ngClass]="'width-per-'+row.maxInVehicle*2" role="progressbar">`

`error NG8001: 'tc-rating' is not a known element:

  1. If 'tc-rating' is an Angular component, then verify that it is part of this module.
  2. If 'tc-rating' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

299 template: <tc-rating [iconsNumber]="10" [value]="row.priority" [disabled]="true" [tcFontSize]="11"></tc-rating>,`

Thanks first for this wonderful library,
Is the library supports this kind of component reusability ?

@hjalmers
Copy link
Owner

Hi and sorry for the late reply, not sure if you got passed this but it's a bit hard to tell what caused the error with out some more info. My guess is that you haven't added the tc component as an entry component in this case. I've been pretty busy lately but I hope to release a new reworked version in a not to distant future. It's available as an RC (release candidate at the moment) and it will add some more flexibility to the table and allow you to define different templates that you want to use when rendering columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants