DxSchedulerAppointmentLabelMappings Class

Maps the label's properties to the data source fields.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class DxSchedulerAppointmentLabelMappings :
    DxSchedulerMappingsBase

Remarks

The DxSchedulerAppointmentLabelMappings class object is used to map the AppointmentLabelsSource's data fields to the label properties in the Scheduler.

@code {
    DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage()
    {
        AppointmentLabelsSource = new List<LabelObject>()
            {
                new LabelObject() { Id = "1", LabelName = "Label One", LabelColor = System.Drawing.Color.Red },
                new LabelObject() { Id = "2", LabelName = "Label Two", LabelColor = System.Drawing.Color.Green },
            },
        AppointmentLabelMappings = new DxSchedulerAppointmentLabelMappings()
        {
            Id = "Id",
            Caption = "LabelName",
            Color = "LabelColor"
        }
    };
}
NOTE

Online Demo: Scheduler

Inheritance

Object
DevExpress.Blazor.Scheduler.Internal.BindableBase
DevExpress.Blazor.Scheduler.Internal.FreezableBase
DxSchedulerMappingsBase
DxSchedulerAppointmentLabelMappings
See Also