You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow users to define their custom template on the right side of the plot, the same way it can be done on the left side. Example:
<ngx-features-viewer>
<!-- Define template for label on the left side -->
<!-- NOTE by default falls back to left side -->
<ng-template [ngx-features-viewer-label]="left"></ng-template>
<ng-template [ngx-features-viewer-label]></ng-template>
<!-- Define template for label on the right side -->
<ng-template [ngx-features-viewer-label]="right"></ng-template>
</ngx-features-viewer>
This should change the label property in NgxFeaturesViewerLabelDirective from this:
@ContentChild(NgxFeaturesViewerLabelDirective)
public label?: NgxFeaturesViewerLabelDirective;
to this:
@ContentChild('ngx-features-viewer-label, ngx-features-viewer-label[left]')
public 'label.left'?: NgxFeaturesViewerLabelDirective;
@ContentChild('ngx-features-viewer-label[right]')
public 'label.right'?: NgxFeaturesViewerLabelDirective;
Therefore, it must be handled in the DrawService.draw$ and DrawService.drawn$ pipelines accordingly.
The text was updated successfully, but these errors were encountered:
Allow users to define their custom template on the right side of the plot, the same way it can be done on the left side. Example:
This should change the
label
property inNgxFeaturesViewerLabelDirective
from this:to this:
Therefore, it must be handled in the
DrawService.draw$
andDrawService.drawn$
pipelines accordingly.The text was updated successfully, but these errors were encountered: