File

src/toggletip/toggletip-button.directive.ts

Metadata

Index

Properties
Inputs
HostBindings

Inputs

ariaLabel
Type : string
Default value : "Show information"

HostBindings

attr.type
Type : string
Default value : "button"
class.cds--toggletip-button
Type : boolean
Default value : true

Properties

toggletipButton
Default value : true
Decorators :
@HostBinding('class.cds--toggletip-button')
toggletipButtonType
Type : string
Default value : "button"
Decorators :
@HostBinding('attr.type')
import {
	Directive,
	HostBinding,
	Input
} from "@angular/core";

@Directive({
	selector: "[cdsToggletipButton], [ibmToggletipButton]"
})
export class ToggletipButton {
	@HostBinding("class.cds--toggletip-button") toggletipButton = true;
	@HostBinding("attr.type") toggletipButtonType = "button";
	@HostBinding("attr.aria-label") @Input() ariaLabel = "Show information";
}

results matching ""

    No results matching ""