-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78ad2e0
commit 54c6bbd
Showing
4 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
projects/core/directives/dropdown/dropdown-fixed.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import {Directive, inject} from '@angular/core'; | ||
import {tuiOverrideOptions} from '@taiga-ui/core/utils/miscellaneous'; | ||
|
||
import { | ||
TUI_DROPDOWN_DEFAULT_OPTIONS, | ||
TUI_DROPDOWN_OPTIONS, | ||
} from './dropdown-options.directive'; | ||
|
||
@Directive({ | ||
standalone: true, | ||
}) | ||
export class TuiDropdownFixed { | ||
constructor() { | ||
const override = tuiOverrideOptions( | ||
{limitWidth: 'fixed'}, | ||
TUI_DROPDOWN_DEFAULT_OPTIONS, | ||
); | ||
|
||
override(inject(TUI_DROPDOWN_OPTIONS), TUI_DROPDOWN_DEFAULT_OPTIONS); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters