@playcanvas/pcui
Version:
User interface component library for the web
34 lines (33 loc) • 856 B
TypeScript
import { Container, ContainerArgs } from '../Container';
import { Element } from '../Element';
/**
* The arguments for the {@link Progress} constructor.
*/
interface ProgressArgs extends ContainerArgs {
/**
* Sets the value of the progress bar (between 0 and 100).
*/
value?: number;
}
/**
* Represents a bar that can highlight progress of an activity.
*/
declare class Progress extends Container {
protected _inner: Element;
protected _value: number;
/**
* Creates a new Progress.
*
* @param args - The arguments.
*/
constructor(args?: Readonly<ProgressArgs>);
/**
* Sets the value of the progress bar. The range is from 0 to 100.
*/
set value(val: number);
/**
* Gets the value of the progress bar.
*/
get value(): number;
}
export { Progress, ProgressArgs };