Learn about visual thememore

Help inline button

The help inline button beside a field or other item lets users display more information about that item.

Demo

Link for section titled Installation
Installation

NPM package
@skyux/help-inlineView in NPM | View in GitHub None found.
Install with NPM
npm install --save-exact @skyux/help-inline None found.

Link for section titled SkyHelpInlineModule
SkyHelpInlineModule

Type: Module

import { SkyHelpInlineModule } from '@skyux/help-inline';

Link for section titled SkyHelpInlineComponent
SkyHelpInlineComponent

Type: Component

Selector: sky-help-inline

Inserts a help button beside an element, such as a field, to display contextual information about the element.

Inputs

ariaControls: string | undefined

The ID of the element that the help inline button controls. This property supports accessibility rules for disclosures. For more information about the aria-controls attribute, see the WAI-ARIA definition.

ariaExpanded: boolean | undefined

Whether an element or popover controlled by the help inline button is expanded. If popoverContent is specified, this value is overridden with popover expanded status.

ariaLabel: string | undefined

The ARIA label for the help inline button. This sets the button's aria-label to provide a text equivalent for screen readers. Will be overridden if label text is set.

Default: "Show help content"

helpKey: string | undefined

A unique key that identifies the global help content to display when the button is clicked.

labelText: string | undefined

The label of the component the help inline button is attached to.

popoverContent: string | TemplateRef<unknown> | undefined

The content of the help popover. When specified, clicking the help inline button opens a popover with this content and optional title.

popoverTitle: string | undefined

The title of the help popover. This property only applies when popoverContent is also specified.

Outputs

actionClick: EventEmitter<void>

Fires when the user clicks the help inline button.

Link for section titled SkyHelpService
SkyHelpService

Type: Service

Provides methods for opening and updating a globally accessible help dialog.

Properties

widgetReadyStateChange: Observable<boolean>

Emits when the help widget ready state changes.

Methods

openHelp(args?: SkyHelpOpenArgs): void

Opens a globally accessible help dialog.

Parameters

args?: SkyHelpOpenArgs

The options for opening the help dialog.

Returns

void

updateHelp(args: SkyHelpUpdateArgs): void

Updates a globally accessible help dialog.

Parameters

args: SkyHelpUpdateArgs

The options for updating the help dialog.

Returns

void

Link for section titled SkyHelpGlobalOptions
SkyHelpGlobalOptions

Type: Interface

Options to apply to all components that invoke global help.

interface SkyHelpGlobalOptions {
  ariaControls?: string;
  ariaHaspopup?: "dialog" | "menu" | "listbox" | "tree" | "grid";
}

Properties

ariaControls?: string

The ID of the element that is displayed when the invoking component is clicked.

ariaHaspopup?: "dialog" | "menu" | "listbox" | "tree" | "grid"

The type of popup triggered by the invoking component.

Link for section titled SkyHelpOpenArgs
SkyHelpOpenArgs

Type: Interface

Options for displaying a globally accessible help dialog.

interface SkyHelpOpenArgs {
  helpKey: string;
}

Properties

helpKey: string

A unique key that identifies the help content to display.

Link for section titled SkyHelpUpdateArgs
SkyHelpUpdateArgs

Type: Interface

Options for updating a globally accessible help dialog.

interface SkyHelpUpdateArgs {
  helpKey?: string;
  pageDefaultHelpKey?: string;
}

Properties

helpKey?: string

A unique key that identifies the current help content to display. If set to undefined, the page's default help content will be displayed.

pageDefaultHelpKey?: string

A unique key that identifies the page's default help content to display. Set this property to undefined to unset the current page default help key.