@blackbaud/skyux-lib-help
TypeScript icon, indicating that this package has built-in type declarations

9.0.0 • Public • Published

@blackbaud/skyux-lib-help

npm

Provides a SKYUX library for interacting with the Help Widget. Wraps much of the functionality of @blackbaud/help-client in SKYUX-compatible fashion. This module is a dependency of @skyux-sdk/builder.

SKYUX usage

Enable the help widget by providing a configuration in skyuxconfig.json. @skyux-sdk/builder will initialize the widget based on this config.

{
  "help": {
    "helpMode": "menu"
  }
}

See widget-config.ts for more configuration properties.

Use the widget by injecting the HelpWidgetService into your desired directive/service.

@Component({
  selector: 'my-comp',
  template: ` <button (click)="open()">Help</button> `,
})
export class MyComponent {
  public constructor(private helpSvc: HelpWidgetService) {}

  public open(): void {
    this.helpSvc.openToHelpKey('bb-custom-fields.html');
  }
}

Menu vs legacy mode

See @blackbaud/help-client for more information on the helpMode property. menu is the recommended mode going forward.

Readme

Keywords

none

Package Sidebar

Install

npm i @blackbaud/skyux-lib-help

Weekly Downloads

2,356

Version

9.0.0

License

none

Unpacked Size

101 kB

Total Files

35

Last publish

Collaborators

  • blackbaud