Skip to content
ChartForgeX
Class

HtmlChartScheduleEditingOptions

ChartForgeX.Interactivity.Html

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

Opts Gantt lane items into browser editing: add, move, resize, regroup and delete with the pointer or the keyboard. Every proposed edit is offered to the host first (the cancelable cfxscheduleedit event and an optional validator), and the accepted state is exported as JSON that HtmlScheduleEditState applies back to the chart for SVG, PNG and HTML rendering. Off by default; static output never carries editing.

Inheritance

  • object
  • HtmlChartScheduleEditingOptions

Usage

Explore 39 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.

Accepted by parameters 20

Constructors

public HtmlChartScheduleEditingOptions() #

Properties

public bool Enabled { get; set; } #

Gets or sets whether Gantt lane items are editable. Default: false.

public bool AllowAdd { get; set; } #

Gets or sets whether new items can be added (double-click an empty lane, or Insert on a focused item). Default: true.

public bool AllowMove { get; set; } #

Gets or sets whether items can move in time. Default: true.

public bool AllowResize { get; set; } #

Gets or sets whether item starts and ends can be resized. Default: true.

public bool AllowRegroup { get; set; } #

Gets or sets whether items can move to another lane. Default: true.

public bool AllowDelete { get; set; } #

Gets or sets whether items can be deleted. Default: true.

public double SnapMinutes { get; set; } #

Gets or sets the snapping and keyboard step, in minutes. Default: 15.

public double NewItemMinutes { get; set; } #

Gets or sets the length of an added item, in minutes. Default: 60.

public string? NewItemCategory { get; set; } #

Gets or sets the category key of added items, or null to use the first registered state category.

Extension Methods

public static HtmlChartScheduleEditingOptions AllowAdd(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, bool value = true) #

Sets HtmlChartScheduleEditingOptions.AllowAdd: Gets or sets whether new items can be added (double-click an empty lane, or Insert on a focused item). Default: true.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                       // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { AllowAdd = value };    htmlChartScheduleEditingOptions.AllowAdd(value);
public static HtmlChartScheduleEditingOptions AllowDelete(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, bool value = true) #

Sets HtmlChartScheduleEditingOptions.AllowDelete: Gets or sets whether items can be deleted. Default: true.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                          // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { AllowDelete = value };    htmlChartScheduleEditingOptions.AllowDelete(value);
public static HtmlChartScheduleEditingOptions AllowMove(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, bool value = true) #

Sets HtmlChartScheduleEditingOptions.AllowMove: Gets or sets whether items can move in time. Default: true.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                        // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { AllowMove = value };    htmlChartScheduleEditingOptions.AllowMove(value);
public static HtmlChartScheduleEditingOptions AllowRegroup(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, bool value = true) #

Sets HtmlChartScheduleEditingOptions.AllowRegroup: Gets or sets whether items can move to another lane. Default: true.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                           // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { AllowRegroup = value };    htmlChartScheduleEditingOptions.AllowRegroup(value);
public static HtmlChartScheduleEditingOptions AllowResize(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, bool value = true) #

Sets HtmlChartScheduleEditingOptions.AllowResize: Gets or sets whether item starts and ends can be resized. Default: true.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                          // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { AllowResize = value };    htmlChartScheduleEditingOptions.AllowResize(value);
public static HtmlChartScheduleEditingOptions Enabled(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, bool value = true) #

Sets HtmlChartScheduleEditingOptions.Enabled: Gets or sets whether Gantt lane items are editable. Default: false.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                      // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { Enabled = value };    htmlChartScheduleEditingOptions.Enabled(value);
public static HtmlChartScheduleEditingOptions NewItemCategory(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, string? value) #

Sets HtmlChartScheduleEditingOptions.NewItemCategory: Gets or sets the category key of added items, or null to use the first registered state category.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value string? required
The value.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                              // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { NewItemCategory = value };    htmlChartScheduleEditingOptions.NewItemCategory(value);
public static HtmlChartScheduleEditingOptions NewItemMinutes(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, double value) #

Sets HtmlChartScheduleEditingOptions.NewItemMinutes: Gets or sets the length of an added item, in minutes. Default: 60.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value double required
The value.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                             // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { NewItemMinutes = value };    htmlChartScheduleEditingOptions.NewItemMinutes(value);
public static HtmlChartScheduleEditingOptions SnapMinutes(HtmlChartScheduleEditingOptions htmlChartScheduleEditingOptions, double value) #

Sets HtmlChartScheduleEditingOptions.SnapMinutes: Gets or sets the snapping and keyboard step, in minutes. Default: 15.

Parameters

htmlChartScheduleEditingOptions ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions required
The instance.
value double required
The value.

Returns

HtmlChartScheduleEditingOptions The same instance.

Examples

// C# initializer or property                                                                          // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartScheduleEditingOptions { SnapMinutes = value };    htmlChartScheduleEditingOptions.SnapMinutes(value);