HtmlScheduleEditState
ChartForgeX.Interactivity.Html
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
- Method HtmlScheduleEditState.Parse
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
- The chart the edited page was rendered from.
public static HtmlScheduleEditState Parse(string json) #Reads the JSON the browser editor exports.
Parameters
- json string
- The state JSON: {"lanes":[{"id":"…","items":[{"start":…,"end":…,"category":"…"}]}]}, with start and end as OLE Automation dates and optional sourceLane, source, label and detail.
public string ToJson() #Writes the state as the same JSON the browser exports.
Returns
string The JSON text.Inherited Methods
Properties
public IReadOnlyList<HtmlScheduleEditLane> Lanes { get; } #Gets the edited lanes, in the order the browser listed them.