if-multichannel-directive.mdx 964 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. title: "IfMultichannelDirective"
  3. generated: true
  4. ---
  5. <GenerationInfo sourceFile="packages/admin-ui/src/lib/core/src/shared/directives/if-multichannel.directive.ts" sourceLine="21" packageName="@vendure/admin-ui" />
  6. Structural directive that displays the given element if the Vendure instance has multiple channels
  7. configured.
  8. *Example*
  9. ```html
  10. <div *vdrIfMultichannel class="channel-selector">
  11. <!-- ... -->
  12. </ng-container>
  13. ```
  14. ```ts title="Signature"
  15. class IfMultichannelDirective extends IfDirectiveBase<[]> {
  16. constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService)
  17. }
  18. ```
  19. * Extends: `IfDirectiveBase<[]>`
  20. <div className="members-wrapper">
  21. ### constructor
  22. <MemberInfo kind="method" type={`(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: <a href='/reference/admin-ui-api/services/data-service#dataservice'>DataService</a>) => IfMultichannelDirective`} />
  23. </div>