Plan
Description
A component to display a plan
The Plan component displays a complex task with its sub-tasks and overall progress.
API reference
public sealed class Plan : IComponent, IHasMarginPaddingA timeline-style display for showing a multi-step plan or schedule with start/end times for each step.
- Namespace
- Tesserae
- Implements
- IComponent, IHasMarginPadding
Constructors
| Name | Description |
|---|---|
| Plan | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| Margin | Gets or sets the CSS margin of the component. |
| Padding | Gets or sets the CSS padding of the component. |
public string Margin { get ; set ; }Gets or sets the CSS margin of the component.
Methods
| Name | Description |
|---|---|
| Render | Renders the component's root HTML element. |
| Title | Gets or sets the title of the component. |
| HeaderCommands | Sets the components shown in the header command area. |
| FooterMessage | Sets a message shown in the footer. |
| FooterCommands | Sets the components shown in the footer command area. |
| AddTask | Adds the given task to the component. |
| Progress | Configures the component to progress. |
| Indeterminate | Configures the component to indeterminate. |
| StartStopButton | Adds a start / stop toggle button wired up via the supplied callback. |
| HideStartStopButton | Hides the start stop button. |
| ShowStartStopButton | Shows the start stop button. |
| Start | Starts the component's operation. |
| Stop | Stops the component's operation. |
public Plan HeaderCommands(params IComponent[] commands)Sets the components shown in the header command area.
public Plan AddTask(string title, bool completed)Adds the given task to the component.
| Overload | |
|---|---|
| Progress(int, int) | Configures the component to progress. |
| Progress(float) | Configures the component to progress. |
public Plan StartStopButton(Action<Button> onStartStop)Adds a start / stop toggle button wired up via the supplied callback.