WLJS LogoWLJS Notebook

Panel

Panel[expr_]

for example:

Panel[Plot[x, {x,0,1}], Background->LightYellow]
Panel[Plot[x, {x,0,1}], Appearance->"Frameless"]
Panel[expr_, titleLabel_, pos_:Top]

displays as a panel containing expr and provides a title at the top.

Use Deploy to make the content uneditable and non-selectable

Methods

EventHandler

It supports Click event

EventHandler[Panel["Click on me"], {"Click" -> Print}]

Options

ImageSize

The effect is the same as if {w_, h_} or w were specified as a second argument.

FrameMargins

Sets a margin to the content in 1/10 rem

Background

Specifies the background color

Appearance

Controls the appearance of the panel. Use "Frameless" to remove the panel frame.

Panel[Plot[x, {x, 0, 1}], Appearance -> "Frameless"]

Examples

Panel[i = InputRange[0,1,0.1], Style["My slider", 10]]

Common issues

By the default it shows StandardForm of expression passed as titleLabel. For string it will print double quotes as well. To remove them apply Style

Panel[123, Style["Title", 10]]

Supported output forms

On this page