Tesserae

Plan

Description

A component to display a plan

The Plan component displays a complex task with its sub-tasks and overall progress.

API reference

class

Plan

public sealed class Plan : IComponent, IHasMarginPadding

A timeline-style display for showing a multi-step plan or schedule with start/end times for each step.

Constructors

Constructor
Plan
public Plan(string title)

Initializes a new instance of this class.

Properties

Property
Plan.Margin
public string Margin { get ; set ; }

Gets or sets the CSS margin of the component.

Property
Plan.Padding
public string Padding { get ; set ; }

Gets or sets the CSS padding of the component.

Methods

Method
Plan.Render
public HTMLElement Render()

Renders the component's root HTML element.

Method
Plan.Title
public Plan Title(string title)

Gets or sets the title of the component.

Method
Plan.HeaderCommands
public Plan HeaderCommands(params IComponent[] commands)

Sets the components shown in the header command area.

Method
Plan.FooterMessage
public Plan FooterMessage(string message)

Sets a message shown in the footer.

Method
Plan.FooterCommands
public Plan FooterCommands(params IComponent[] commands)

Sets the components shown in the footer command area.

Method
Plan.AddTask
public Plan AddTask(string title, bool completed)

Adds the given task to the component.

Method
Plan.Progress
public Plan Progress(int position, int total)

Configures the component to progress.

Method
Plan.Progress
public Plan Progress(float percent)

Configures the component to progress.

Method
Plan.Indeterminate
public Plan Indeterminate()

Configures the component to indeterminate.

Method
Plan.StartStopButton
public Plan StartStopButton(Action<Button> onStartStop)

Adds a start / stop toggle button wired up via the supplied callback.

Method
Plan.HideStartStopButton
public Plan HideStartStopButton()

Hides the start stop button.

Method
Plan.ShowStartStopButton
public Plan ShowStartStopButton()

Shows the start stop button.

Method
Plan.Start
public Plan Start()

Starts the component's operation.

Method
Plan.Stop
public Plan Stop()

Stops the component's operation.

Samples

Running plan with partial progress

Completed plan with stop button hidden

Plan with indeterminate progress

See also

© 2026 Tesserae. All rights reserved.