On This Page

IFrame

This section contains controls for an iframe component.

Basic controls

The controls are defined inside a TopNav component.

Expand/Collapse source code
Copied
Copy source sections
Copy source as is
Imports
import live-web.dom
import live-web-view.button
import live-web-view.navigation
import live-web-view.layout
import live-web-view.iframe
Styles
static any[] use = [TopNav, IconButton, Resizable]
Content
TopNav{ 
    position = 'static'

    NavContent{
        ZoomInButton{ target: frame }
        ZoomOutButton{ target: frame }
        RefreshButton{ target: frame }
        ResizableFillButton{ target: resizable isFilled: true }
    }
}
Resizable{ id: resizable fill: true border: true
    IFrame{ id: frame src: '/' }
    ResizableHandlePoint{}
}