Inject Function@pillar-ai/angular
injectHelpPanel()
Angular injection function for panel-specific controls.
typescript
import { injectHelpPanel } from '@pillar-ai/angular'
Signature
typescript
function injectHelpPanel(): InjectHelpPanelResult
Return Value
Return Value
isOpenrequiredSignal<boolean>
Whether the panel is currently open
openrequired(options?: { view?: string; article?: string; search?: string }) => void
Open the panel
closerequired() => void
Close the panel
togglerequired() => void
Toggle the panel
openArticlerequired(slug: string) => void
Open a specific article in the panel
openCategoryrequired(slug: string) => Promise<void>
Open a specific category in the panel
openSearchrequired(query?: string) => void
Open search with a query
openChatrequired() => void
Open the AI chat
Returns
InjectHelpPanelResultExample
tsx
```typescript
Source:
packages/sdk-angular/src/lib/inject-help-panel.ts