Skip to content
ChartForgeX
Class

HtmlScheduleEditState

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
sealed

The accepted Gantt lane state that the browser editor exports through getScheduleState() and the cfxschedulechange event. Apply it to the source chart to render the accepted edits as SVG, PNG or HTML.

Inheritance

  • object
  • HtmlScheduleEditState

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public Chart ApplyTo(Chart chart) #

Replaces the items of each listed Gantt lane with the accepted items. Items that keep their sourceLane and source keep their original label, detail, label presentation, fill pattern and mark options unless the state names new values. Explicit observation IDs stay with items that remain in their original series. Lanes the state does not list are unchanged.

Parameters

chart ChartForgeX.Core.Chart required
The chart the edited page was rendered from.

Returns

Chart The same chart, for chaining.
public static HtmlScheduleEditState Parse(string json) #

Reads the JSON the browser editor exports.

Parameters

json string required
The state JSON: {"lanes":[{"id":"…","items":[{"start":…,"end":…,"category":"…"}]}]}, with start and end as OLE Automation dates and optional sourceLane, source, label and detail.

Returns

HtmlScheduleEditState The parsed state.
public string ToJson() #

Writes the state as the same JSON the browser exports.

Returns

string The JSON text.

Properties

public IReadOnlyList<HtmlScheduleEditLane> Lanes { get; } #

Gets the edited lanes, in the order the browser listed them.