src/button/base-icon-button.component.ts
Base button with common input properties for configuring icon button. Extend class to inherit @Input meta data
Used by pagination nav icon button, code snippet, etc.
Inputs |
align | |
Type : "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-bottom" | "right-top"
|
|
Default value : "bottom"
|
|
Defined in src/button/base-icon-button.component.ts:32
|
|
Set popover alignment |
autoAlign | |
Type : boolean
|
|
Default value : false
|
|
Defined in src/button/base-icon-button.component.ts:40
|
|
Experimental: Use floating-ui to position the tooltip This is not toggleable - should be assigned once |
caret | |
Type : boolean
|
|
Default value : true
|
|
Defined in src/button/base-icon-button.component.ts:16
|
|
Set to |
dropShadow | |
Type : boolean
|
|
Default value : true
|
|
Defined in src/button/base-icon-button.component.ts:20
|
|
Set to |
enterDelayMs | |
Type : number
|
|
Default value : 100
|
|
Defined in src/button/base-icon-button.component.ts:44
|
|
Set delay before tooltip is shown |
highContrast | |
Type : boolean
|
|
Default value : true
|
|
Defined in src/button/base-icon-button.component.ts:24
|
|
Set to |
isOpen | |
Type : boolean
|
|
Default value : false
|
|
Defined in src/button/base-icon-button.component.ts:28
|
|
Set to |
leaveDelayMs | |
Type : number
|
|
Default value : 300
|
|
Defined in src/button/base-icon-button.component.ts:48
|
|
Set delay when tooltip disappears |
import { Component, Input } from "@angular/core";
/**
* Base button with common input properties for configuring icon button.
* Extend class to inherit @Input meta data
*
* Used by pagination nav icon button, code snippet, etc.
*/
@Component({
template: ""
})
export class BaseIconButton {
/**
* Set to `false` to hide caret
*/
@Input() caret = true;
/**
* Set to `false` to hide shadow
*/
@Input() dropShadow = true;
/**
* Set to `true` to enable high contrast
*/
@Input() highContrast = true;
/**
* Set to `true` to have the popover open by default
*/
@Input() isOpen = false;
/**
* Set popover alignment
*/
@Input() align: "top" | "top-left" | "top-right" |
"bottom" | "bottom-left" | "bottom-right" |
"left" | "left-bottom" | "left-top" |
"right" | "right-bottom" | "right-top" = "bottom";
/**
* **Experimental**: Use floating-ui to position the tooltip
* This is not toggleable - should be assigned once
*/
@Input() autoAlign = false;
/**
* Set delay before tooltip is shown
*/
@Input() enterDelayMs = 100;
/**
* Set delay when tooltip disappears
*/
@Input() leaveDelayMs = 300;
}