Class MenuRecordWidget

MenuRecordWidget is a configurable widget that displays a set of record control buttons, with customizable icon, color, and actions.

app-menu-record-widget

true

CommonModule, FontAwesomeModule, ControlButtonsAltComponent

  • buttons (RecordButton[]): Array of record button configurations, each with properties for icon, active state, colors, and actions.
  • direction ('horizontal' | 'vertical'): Layout direction for the buttons. Default is 'horizontal'.
<app-menu-record-widget
[buttons]="[
{ icon: faCircle, text: 'Record', onPress: startRecording, activeColor: 'red' },
{ icon: faStop, text: 'Stop', onPress: stopRecording, inActiveColor: 'gray' }
]"
direction="horizontal"
></app-menu-record-widget>

Constructors

Properties

Constructors

Properties

buttons: RecordButton[] = []
direction: "horizontal" | "vertical" = 'horizontal'