Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
ChildContent |
RenderFragment |
null | |
ScrollBehavior |
ScrollBehavior |
ScrollBehavior.Smooth | Smooth or Auto |
Selector |
string |
null | The CSS selector to which the scroll event will be attached |
TopOffset |
int |
300 | The distance in pixels scrolled from the top of the selected element from which the component becomes visible |
Visible |
bool |
False | If set to true, it starts Visible. If sets to false, it will become visible when the TopOffset amount of scrolled pixels is reached |
Appearance | |||
HiddenCssClass |
string |
null | CSS class for the Hidden state. Here, apply some transitions and animations that will happen when the component becomes invisible |
VisibleCssClass |
string |
null | CSS class for the Visible state. Here, apply some transitions and animations that will happen when the component becomes visible |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |
EventCallbacks
Name | Type | Description |
---|---|---|
OnClick |
EventCallback<MouseEventArgs> | |
OnScroll |
EventCallback<ScrollEventArgs> | Called when scroll event is fired |
Methods
Name | Parameters | Return | Description |
---|---|---|---|
Dispose() |
Remove the event |