# EclModalCloseDirective

**Type:** directive



Directive that allows an element to close the modal on click.

Can emit a result and indicate the role (e.g., confirm, cancel).


**Selector:** `[eclModalClose]`

## Inputs
- **eclModalClose**: `T` - Optional result value to emit when modal is closed.
- **eclModalRole**: `"confirm" | "cancel" | string` - Optional role associated with the modal close action (e.g., confirm, cancel).
- **class**: `string` - 
- **e2eAttr**: `any` - 
- **tabindex**: `number` - 

## Outputs
- **modalClose**: `EventEmitter` - Event emitted when the element is clicked and the modal should be closed.
