Class Progress


@Bean(typeName="progress") public class Progress extends HtmlElementMixed
DTO for an HTML <progress> element.

The progress element represents the completion progress of a task. It is used to display the progress of an operation, such as file uploads, downloads, or any other task that has a defined completion state. The progress element can show both determinate progress (when the total amount of work is known) and indeterminate progress (when the total amount of work is unknown). It is typically rendered as a progress bar that fills up as the task progresses.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple progress bar Progress simple = progress() .value(50) .max(100); // Progress with styling Progress styled = progress() ._class("file-upload-progress") .value(75) .max(100); // Progress with complex content Progress complex = progress("60% complete") .value(60) .max(100); // Progress with ID Progress withId = progress() .id("download-progress") .value(30) .max(100); // Progress with styling Progress styled2 = progress() .style("width: 300px; height: 20px;") .value(40) .max(100); // Progress with multiple attributes Progress multiple = progress("85% complete") .value(85) .max(100) .title("Upload Progress: 85%"); // Progress with form Progress withForm = progress() .form("upload-form") .value(25) .max(100); // Indeterminate progress Progress indeterminate = new Progress() .children("Loading...");

See Also: