Name |
Type |
Default value |
Description |
---|
Alt |
string? |
null |
Specifies an alternate text for the image. |
Classes |
BitImageClassStyles? |
null |
Custom CSS classes for different parts of the BitImage. |
CoverStyle |
BitImageCoverStyle |
null |
Specifies the cover style to be used for this image. |
Height |
string? |
null |
The image height value. |
ImageAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Capture and render additional attributes in addition to the image's parameters |
ImageFit |
BitImageFit? |
null |
Used to determine how the image is scaled and cropped to fit the frame. |
Loading |
string? |
null |
Allows for browser-level image loading (lazy or eager). |
MaximizeFrame |
bool |
false |
If true, the image frame will expand to fill its parent container. |
OnClick |
EventCallback<MouseEventArgs> |
null |
Callback for when the image is clicked. |
OnLoadingStateChange |
EventCallback<BitImageLoadingState> |
null |
Optional callback method for when the image load state has changed. |
ShouldFadeIn |
bool |
true |
If true, fades the image in when loaded. |
ShouldStartVisible |
bool |
true |
If true, the image starts as visible and is hidden on error. Otherwise, the image is hidden until it is successfully loaded. |
Src |
string? |
null |
Specifies the src of the image. |
Styles |
BitImageClassStyles? |
null |
Custom CSS styles for different parts of the BitImage. |
Title |
string? |
null |
The title to show when the mouse is placed on the image. |
Width |
string? |
null |
The image width value. |
Name |
Type |
Default value |
Description |
---|
AriaLabel |
string? |
null |
The aria-label of the control for the benefit of screen readers. |
Class |
string? |
null |
Custom CSS class for the root element of the component. |
Dir |
BitDir? |
null |
Determines the component direction. |
HtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Capture and render additional attributes in addition to the component's parameters. |
Id |
string? |
null |
Custom id attribute for the root element. if null the UniqueId will be used instead. |
IsEnabled |
bool |
true |
Whether or not the component is enabled. |
Style |
string? |
null |
Custom CSS style for the root element of the component. |
Visibility |
BitVisibility |
BitVisibility.Visible |
Whether the component is visible, hidden or collapsed. |