-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/select component #23
Conversation
f57be20
to
a006cc4
Compare
<sk-select [(ngModel)]="selectedValue"> | ||
<span skSelectPlaceholder>Select option</span> | ||
<span skSelectLabel>{{ selectedValue?.label }}</span> | ||
@for (option of options; track option.value) { | ||
<sk-select-option [value]="option"> | ||
{{ option.label }} | ||
</sk-select-option> | ||
} | ||
</sk-select> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful <3
private readonly window = inject(DOCUMENT)?.defaultView; | ||
|
||
private readonly windowResize = this.window | ||
? toSignal(fromEvent(this.window, 'resize')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wie wärs mit throttle / debounce?
styleUrl: './select.component.css', | ||
encapsulation: ViewEncapsulation.ShadowDom, | ||
}) | ||
export class SelectComponent<T> implements ControlValueAccessor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sehr cool
a006cc4
to
e8c0e51
Compare
e8c0e51
to
af92c80
Compare
No description provided.