File

src/modal/modal-content.directive.ts

Metadata

Index

Properties
Inputs
HostBindings

Inputs

hasForm
Type : boolean
Default value : false

Provide whether the modal content has a form element. If true is used here, non-form child content should have cds--modal-content__regular-content class.

HostBindings

class.cds--modal-content
Type : boolean
Default value : true

Properties

modalContentClass
Default value : true
Decorators :
@HostBinding('class.cds--modal-content')
import { Directive, HostBinding, Input } from "@angular/core";

@Directive({
	selector: "[cdsModalContent], [ibmModalContent]"
})
export class ModalContent {
	@HostBinding("class.cds--modal-content") modalContentClass = true;
	/**
	 * Provide whether the modal content has a form element.
	 * If `true` is used here, non-form child content should have `cds--modal-content__regular-content` class.
	 */
	@HostBinding("class.cds--modal-content--with-form") @Input() hasForm = false;
}

results matching ""

    No results matching ""