ControlButtonsAltComponent provides configurable button controls with custom icons, colors, and positioning options.
app-control-buttons-alt-component
true
CommonModule, FontAwesomeModule
buttons
position
location
direction
buttonsContainerStyle
showAspect
getAlignmentStyle()
getContainerStyle()
getButtonStyle(button: AltButton)
getTextStyle(button: AltButton)
isCustomComponent(comp)
isFunctionComponent(comp)
<app-control-buttons-alt-component [buttons]="[ { name: 'Pause', icon: faPause, onPress: pauseAction, activeColor: 'blue' }, { name: 'Play', icon: faPlay, onPress: playAction, color: 'green' } ]"[position]="'middle'"[location]="'bottom'"[direction]="'vertical'"[buttonsContainerStyle]="{ backgroundColor: '#333' }"[showAspect]="true"></app-control-buttons-alt-component> Copy
<app-control-buttons-alt-component [buttons]="[ { name: 'Pause', icon: faPause, onPress: pauseAction, activeColor: 'blue' }, { name: 'Play', icon: faPlay, onPress: playAction, color: 'green' } ]"[position]="'middle'"[location]="'bottom'"[direction]="'vertical'"[buttonsContainerStyle]="{ backgroundColor: '#333' }"[showAspect]="true"></app-control-buttons-alt-component>
ControlButtonsAltComponent provides configurable button controls with custom icons, colors, and positioning options.
Selector
app-control-buttons-alt-component
Standalone
true
Imports
CommonModule, FontAwesomeModule
Inputs
buttons(AltButton[]): Array of button configurations with options for icon, color, state, and actions.position('left' | 'right' | 'middle'): Horizontal alignment of buttons. Default is 'left'.location('top' | 'bottom' | 'center'): Vertical alignment of buttons. Default is 'top'.direction('horizontal' | 'vertical'): Layout direction for buttons. Default is 'horizontal'.buttonsContainerStyle(PartialshowAspect(boolean): Controls the visibility of the button container. Default is false.Methods
getAlignmentStyle(): Returns alignment styles based onposition,location, anddirection.getContainerStyle(): Combines container styles, alignment styles, and visibility settings.getButtonStyle(button: AltButton): Applies style to each button based on its properties.getTextStyle(button: AltButton): Sets text styles for button labels.isCustomComponent(comp): Type guard to identify custom component objects.isFunctionComponent(comp): Type guard to identify function components.Example