Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

actualScrollOffsetX: number
actualScrollOffsetY: number
animationTime: number
autoHidePriority: number
backgroundColor: ColorWithAlpha
borderColor: ColorWithAlpha
borderMode: BorderMode
borderStyle: BorderStyle
borderWidth: number
children: Iterable<View>
clipMode: ClipMode
content: View
contentColor: ColorWithAlpha
contentHeight: number
contentWidth: number
contentX: number
contentY: number
cornerRadius: number
cornerRadiusRelative: boolean
directionality: Directionality
enabled: boolean
firstChild: View
firstVisibleChild: View
focusable: boolean
focused: boolean
fontSize: number
fontStyle: FontStyle
fontWeight: FontWeight
gradient: Gradient
handlingWheelEvent: boolean
height: number
horizontalHandleVisibility: ScrollHandleVisibility
hovered: boolean
innermostHovered: boolean
inputRoot: boolean
insets: Insets
languageDirection: LanguageDirection
lastChild: View
lastVisibleChild: View
leftBottomCornerRadius: number
leftTopCornerRadius: number
lineStretch: boolean
maxHeight: number
maxWidth: number
minHeight: number
minWidth: number
mounted: boolean
mouseWheelOrientation: Orientation
nextSibling: View
nextVisibleSibling: View
orientation: Orientation
overlay: DockLayout
pageStretch: boolean
parent: View
posX: number
posY: number
pressed: boolean
previousSibling: View
previousVisibleSibling: View
rightBottomCornerRadius: number
rightTopCornerRadius: number
root: Root
scrollOffsetX: number
scrollOffsetY: number
selected: boolean
shadow: Shadow
stretchPriority: number
stretchRate: number
takingDragEvents: boolean

Consider you have a scroll with draggable buttons within. When the user touches and drags these buttons, scroll takes these drag events from these buttons. Usually in such cases the user needs to long press and drag the button. However, in some cases we can provide some extra UI to scroll, for example, arrow buttons, so that the user is not supposed to scroll using drag, but rather to click these arrows. In this case it's excessive to force the user to long press draggable buttons.

This property allows overriding this behaviour. By default (true value), Scroll always has priority when handling drag. false value means that Scroll only handles drags when nothing else handles them.

textDecoration: TextDecoration
verticalHandleVisibility: ScrollHandleVisibility
viewClasses: Iterable<ViewClass>
visible: boolean
width: number
content: ViewClass
handle: ViewClass
handleView: ViewClass
horizontal: ViewClass
overlay: ViewClass
vertical: ViewClass

Methods

  • addViewClasses(...viewClasses: ViewClass[]): void
  • clearViewClasses(): void
  • destroyFocus(): void
  • getPositionRelativeToRoot(): Vector2
  • isAncestorOf(other: View): boolean
  • removeViewClasses(...viewClasses: ViewClass[]): void
  • requestFocus(): boolean
  • scrollTo(x: number, y: number): void
  • scrollTo(view: View): void
  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    Returns void