Padder

Class

For examples and usage details, see the component documentation.

View Padder Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class Padder : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Padder()Constructor—

Properties

15
NameTypeDescription
Behavior
FocusableBooleanMakes the scroll container a Tab stop that scrolls with the arrow keys, PageUp, PageDown, Home and End. See Focusable.
OverscrollBehaviorOverscrollBehaviorWhether scrolling continues in the parent scroll container once this one reaches its limit. See OverscrollBehavior.
Appearance
FillHeightBooleanWhether the padder should fill the height offered by its parent.
FillWidthBooleanWhether the padder should fill the width offered by its parent.
Common
ChildContentRenderFragmentContent to which padding will be applied.
Other
ControllerScrollControllerScrolls this container from code. See Controller.
ExpandBooleanWhether the padder should expand to fill available space in native widget layout containers.
MarginPaddingMargin to apply outside the padded content.
OverflowOverflowModeWhat happens to content taller than the padder. See Overflow.
PaddingPaddingPadding to apply as (left, top, right, bottom) in characters. Default is (0, 0, 0, 0). Example: new Padding(2, 1, 2, 1) adds 2 characters horizontally and 1 line vertically.
ScrollIdStringStable identity of the scroll state. See ScrollId.
ScrollTopInt32Scroll offset in rows, applied when its value changes. See ScrollTop.
ScrollTopChangedEventCallback<Int32>Raised when the engine changes the scroll offset.
ScrollbarScrollbarSettingsHow the scrollbar looks and where it is drawn. See Scrollbar.
StickToBottomBooleanKeeps the end of the content in view while it grows. See StickToBottom.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()MethodRenders the component to the supplied RenderTreeBuilder.