<title-bar-view>
Makes part of a custom title bar the handle that drags the window, like the CSS app-region: drag property. It works only in Lynx's desktop apps for Windows and macOS, which use Lynx's Clay renderer: desktop (Clay) only.
Usage
Import LYNX_ELEMENTS in your component (see Elements).
Put the title bar across the top of the window, above the page's content. Dragging anywhere on the <title-bar-view> moves the window. Keep buttons, such as close, outside it, next to it in the bar: they stay tappable, and a press on them doesn't start a drag.
:::note
iOS, Android and the web have no <title-bar-view>, so AngularLynx creates a <view> in its place there.
- Its content and layout stay the same, and dragging it does nothing.
moveablehas no effect. - A CSS rule that selects the element by its tag name (
title-bar-view { … }) doesn't apply. Style it with a class instead. :::
Attributes
Plus the common attributes, such as id, class and style.
Events
None, apart from the common events, such as bindtap.
Platform support
Related
<cover-view>: the other desktop-only element<view>
