Page MenuHomeWickedGov Phorge

ProgressIndicatorWidget.js
No OneTemporary

Size
637 B
Referenced Files
None
Subscribers
None

ProgressIndicatorWidget.js

/**
* A Codex ProgressIndicator component implementation.
*/
class ProgressIndicatorWidget {
/**
* Initialize the widget.
*
* @param {string} label aria-label to set on the backing <progress> element
*/
constructor( label ) {
const $progress = $( '<progress>' )
.attr( {
class: 'cdx-progress-indicator__indicator__progress',
'aria-label': label
} );
const $indicator = $( '<div>' )
.addClass( 'cdx-progress-indicator__indicator' )
.append( $progress );
this.$element = $( '<div>' )
.addClass( 'cdx-progress-indicator' )
.append( $indicator );
}
}
module.exports = ProgressIndicatorWidget;

File Metadata

Mime Type
text/plain
Expires
Aug 19 2026, 18:39 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0b/ad/826c9149cd7ee11572ada8e0d65b
Default Alt Text
ProgressIndicatorWidget.js (637 B)

Event Timeline