Appearance
The Loader component provides predefined appearance options, such as different types, sizes, and theme colors.
To explore the available options for customizing the Loader appearance, refer to the following demos:
Type
The Loader allows you to set different visual animations by using the Type
property.
The available Type
values are:
-
Pulsing
(Default)—Applies pulsing animation on the Loader. -
InfiniteSpinner
—Applies infinite-spinner animation on the Loader. -
ConvergingSpinner
—Applies converging-spinner animation on the Loader.
@(Html.Kendo().Loader()
.Name("pulsing")
.Type(LoaderType.Pulsing)
)
@(Html.Kendo().Loader()
.Name("infinite")
.Type(LoaderType.InfiniteSpinner)
)
@(Html.Kendo().Loader()
.Name("converging")
.Type(LoaderType.ConvergingSpinner)
)
@addTagHelper *, Kendo.Mvc
<kendo-loader name="pulsing" type="LoaderType.Pulsing">
</kendo-loader>
<kendo-loader name="infinite" type="LoaderType.InfiniteSpinner">
</kendo-loader>
<kendo-loader name="converging" type="LoaderType.ConvergingSpinner">
</kendo-loader>
Theme Color
The Loader allows you to specify predefined theme colors.
The available ThemeColor
values are:
-
Primary
(Default)—Applies coloring based on primary theme color. -
Secondary
—Applies coloring based on secondary theme color. -
Tertiary
— Applies coloring based on tertiary theme color. -
Info
—Applies coloring based on info theme color. -
Success
— Applies coloring based on success theme color. -
Warning
— Applies coloring based on warning theme color. -
Error
— Applies coloring based on error theme color. -
Dark
— Applies coloring based on dark theme color. -
Light
— Applies coloring based on light theme color. -
Inverse
— Applies coloring based on inverted theme color.
@(Html.Kendo().Loader()
.Name("Primary")
.ThemeColor(LoaderThemeColor.Primary)
)
@(Html.Kendo().Loader()
.Name("Secondary")
.ThemeColor(LoaderThemeColor.Secondary)
)
@(Html.Kendo().Loader()
.Name("Tertiary")
.ThemeColor(LoaderThemeColor.Tertiary)
)
@(Html.Kendo().Loader()
.Name("Info")
.ThemeColor(LoaderThemeColor.Info)
)
@(Html.Kendo().Loader()
.Name("Success")
.ThemeColor(LoaderThemeColor.Success)
)
@(Html.Kendo().Loader()
.Name("Warning")
.ThemeColor(LoaderThemeColor.Warning)
)
@(Html.Kendo().Loader()
.Name("Error")
.ThemeColor(LoaderThemeColor.Error)
)
@(Html.Kendo().Loader()
.Name("Dark")
.ThemeColor(LoaderThemeColor.Dark)
)
@(Html.Kendo().Loader()
.Name("Light")
.ThemeColor(LoaderThemeColor.Light)
)
@(Html.Kendo().Loader()
.Name("Inverse")
.ThemeColor(LoaderThemeColor.Inverse)
)
@addTagHelper *, Kendo.Mvc
<kendo-loader name="Primary" theme-color="LoaderThemeColor.Primary">
</kendo-loader>
<kendo-loader name="Secondary" theme-color="LoaderThemeColor.Secondary">
</kendo-loader>
<kendo-loader name="Tertiary" theme-color="LoaderThemeColor.Tertiary">
</kendo-loader>
<kendo-loader name="Info" theme-color="LoaderThemeColor.Info">
</kendo-loader>
<kendo-loader name="Success" theme-color="LoaderThemeColor.Success">
</kendo-loader>
<kendo-loader name="Warning" theme-color="LoaderThemeColor.Warning">
</kendo-loader>
<kendo-loader name="Error" theme-color="LoaderThemeColor.Error">
</kendo-loader>
<kendo-loader name="Dark" theme-color="LoaderThemeColor.Dark">
</kendo-loader>
<kendo-loader name="Light" theme-color="LoaderThemeColor.Light">
</kendo-loader>
<kendo-loader name="Inverse" theme-color="LoaderThemeColor.Inverse">
</kendo-loader>
Size
The Loader allows you to set different sizes.
The available Size
values are:
Small
-
Medium
(Default) Large
@(Html.Kendo().Loader()
.Name("loader-small")
.Size(LoaderSize.Small)
)
@(Html.Kendo().Loader()
.Name("loader-medium")
.Size(LoaderSize.Medium)
)
@(Html.Kendo().Loader()
.Name("loader-large")
.Size(LoaderSize.Large)
)
@addTagHelper *, Kendo.Mvc
<kendo-loader name="loader-small" size="LoaderSize.Small">
</kendo-loader>
<kendo-loader name="loader-medium" size="LoaderSize.Medium">
</kendo-loader>
<kendo-loader name="loader-large" size="LoaderSize.Large">
</kendo-loader>