A progress bar provides visual feedback about the duration or progress of a task or operation.
import { DaffProgressBarComponent } from '@daffodil/design/progress-bar'
A progress bar provides visual feedback about the duration or progress of a task or operation.
@Component()
class DaffProgressBarComponent {
@Input() color: DaffPalette
@Input() percentage: number
@Input() ariaLabel: string = ''
@Input() indeterminate: boolean = false
@Output() finished: EventEmitter<void> = new EventEmitter()
}
DaffPalette
Default | – |
---|---|
Description | Sets the color on a component. Default options are: |
number
Default | – |
---|---|
Description | Sets the percentage completion of the progression, expressed as a whole number between 0 and 100. |
string
Default | '' |
---|---|
Description | An |
boolean
Default | false |
---|---|
Description | Property to set the animation of a progress bar to run for an indefinite amount of time. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress |
EventEmitter
Default | – |
---|---|
Description | An event that emits each time the progression reaches 100% and the animation is finished. |
import { DaffProgressBarLabelDirective } from '@daffodil/design/progress-bar'
Use label to help users understand what the progress represents.
@Directive()
class DaffProgressBarLabelDirective {}
import { DaffProgressBarModule } from '@daffodil/design/progress-bar'
@NgModule()
class DaffProgressBarModule {}