Class
SchedulerResource

Definition

Constructors

SchedulerResource()

Declaration

cs-api-definition
public SchedulerResource()

Properties

ColorField

Specifies which property contains color information in resource data objects. Resource colors enhance visual organization by tinting appointments and resource headers. Supports CSS color values: hex codes ("#FF5733"), named colors ("red"), or RGB values. Example: "Color" for pre-defined resource colors, "ThemeColor" for themed color schemes.

Declaration

cs-api-definition
[Parameter]
public string ColorField { get; set; }

Property Value

string

Data

Provides the collection of available resource items for this resource type. Each item should contain properties mapped by TextField, ValueField, and optionally ColorField. Changes to this collection trigger resource data refresh and may affect appointment grouping.

Declaration

cs-api-definition
[Parameter]
public IEnumerable<object> Data { get; set; }

Property Value

IEnumerable<object>

Field

Specifies which property in appointment data objects links to this resource. This creates the connection between appointments and resource values for grouping and filtering. Example: "RoomId" links appointments to room resources, "DoctorId" links to doctor resources.

Declaration

cs-api-definition
[Parameter]
public string Field { get; set; }

Property Value

string

TextField

Specifies which property contains the display text in resource data objects. This text appears in dropdowns, headers, and resource selection interfaces. Example: "Name" for resource items with display names, "Title" for descriptive resource labels.

Declaration

cs-api-definition
[Parameter]
public string TextField { get; set; }

Property Value

string

Title

Sets the display name for this resource shown in the edit form and resource headers. If not specified, the Field value is used as the title. Example: "Meeting Room" for a room resource, "Assigned Doctor" for a person resource.

Declaration

cs-api-definition
[Parameter]
public string Title { get; set; }

Property Value

string

ValueField

Specifies which property contains the unique identifier in resource data objects. This value links appointments to specific resources and must match values in appointment data. Example: "Id" for resource unique identifiers, "Code" for resource identification codes.

Declaration

cs-api-definition
[Parameter]
public string ValueField { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)