Back to Devexpress

SchedulerFormLayoutItemBase.IconCssClass Property

blazor-devexpress-dot-blazor-dot-base-dot-schedulerformlayoutitembase-621b72c5.md

latest2.9 KB
Original Source

SchedulerFormLayoutItemBase.IconCssClass Property

Specifies the icon’s CSS class.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public virtual string IconCssClass { get; set; }

Property Value

TypeDescription
String

The CSS class name.

|

Remarks

You can use the following properties to create a custom edit form for appointments:

Construct the form based on layout items in the same way as when you use the DxFormLayout component. The Scheduler ships with a set of predefined layout items that correspond to items of the default edit form.

You can customize settings of these predefined items. Use the IconCssClass property to assign a custom icon to the layout item.

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             ActiveViewType="SchedulerViewType.WorkWeek">
    <Views>
        <DxSchedulerWorkWeekView VisibleTime="@(new DxSchedulerTimeSpanRange(TimeSpan.FromHours(8), 
                                 TimeSpan.FromHours(19)))">
            @*...*@
        </DxSchedulerWorkWeekView>
    </Views>
    <AppointmentFormLayout >
        @*...*@
        <DxSchedulerLocationFormLayoutItem IconCssClass="my-icon"></DxSchedulerLocationFormLayoutItem>
        @*...*@
    </AppointmentFormLayout>
</DxScheduler>
css
.my-icon {
    width: 16px;
    height: 16px;
    background-image: url("../images/my-icon.svg");
    margin: 0 8px 0 0;
}

For additional information, refer to the following help topic: Custom Appointment Form.

See Also

SchedulerFormLayoutItemBase Class

SchedulerFormLayoutItemBase Members

DevExpress.Blazor.Base Namespace