Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

617 B
Raw Blame
<ng-content select="[slot=before]" />
<input
  class="spot-text-field--input"
  [attr.name]="name"
  [attr.pattern]="pattern"
  [attr.inputmode]="inputmode"
  [disabled]="disabled"
  [placeholder]="placeholder"
  [required]="required"
  [ngModel]="value"
  (ngModelChange)="valueChanged($event)"
  (focus)="onInputFocus($event)"
  (blur)="onInputBlur($event)"
  #input
  />
@if (showClearButton && value !== '' && !disabled) {
  <button
    (click)="valueChanged('')"
    type="button"
    class="spot-text-field--clear-button"
    >
    <svg x-icon size="small" />
  </button>
}
<ng-content select="[slot=after]" />