An R6 class and a constructor function for the creation of a layout widget, which itself is used to manipulate the layout of a DOMWidget.

Layout(...)

Arguments

...

Arguments passed to the inializer

Details

The function Layout creates objects of the R6 Class "LayoutClass", which in turn have the S3 class attribute "Layout"

Functions

  • Layout(): The Layout constructor function

Super classes

RKernel::HasTraits -> RKernel::Widget -> Layout

Public fields

_view_name

Name of the Javascript view in the frontend.

_view_module

Name of the Javascript view module in the frontend.

_view_module_version

Version of the Javascript view module in the frontend.

_model_name

Name of the Javascript model in the frontend.

align_content

An optional string, if non-empty, one of "flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "stretch"

align_items

An optional string, if non-empty, one of "flex-start", "flex-end", "center", "baseline", "stretch"

align_self

An optional string, if non-empty, one of "flex-start", "flex-end", "center", "baseline", "stretch"

bottom

Position from bottom, an optional string that should, if non-empty, contain a valid CSS dimension

border

An optional string with a valid CSS border specification

border_top

An optional string with a valid CSS border specification

border_right

An optional string with a valid CSS border specification

border_bottom

An optional string with a valid CSS border specification

border_left

An optional string with a valid CSS border specification

display

An optional string with a valid CSS display property

flex

An optional string with a valid CSS flex property

flex_flow

An optional string with a valid CSS flex_flow property

height

An optional string with a valid CSS height

justify_content

An optional string, if non-empty, one of "flex-start", "flex-end", "center", "space-between", "space-around".

justify_items

An optional string, if non-empty, one of "flex-start", "flex-end", or "center"

left

Position from left, an optional string that should, if non-empty, contain a valid CSS dimension

margin

An optional string, if non-empty, should be a valid CSS margin specification

max_height

An optional string, if non-emtpy, should be a valid CSS dimension

max_width

An optional string, if non-emtpy, should be a valid CSS dimension

min_height

An optional string, if non-emtpy, should be a valid CSS dimension

min_width

An optional string, if non-emtpy, should be a valid CSS dimension

overflow

An optonal string, if non-empty, should be a valid CSS overflow specification

order

An optional string, if non-empty should contain a number

padding

An optional string, if non-emtpy should be a valid CSS dimension

right

Position from right, an optional string, if non-empty, should be a valid CSS dimension

top

Position from top, an optional string, if non-empty, should be a valid CSS dimension

visibility

An optional string, if non-empty, should be either "visible" or "hidden"

width

An optional string, if non-empty, should be a valid CSS dimension

object_fit

An optional string, if non-empty, should be one of "contain", "cover", "fill", "scale-down", "none"

object_position

An optional string, if non-empty, should be a valid CSS object-position specification

grid_auto_columns

An optional string, if non-empty should be valid CSS code for the grid-auto-columns property

grid_auto_flow

An optional string, if non-empty should be valid CSS code for the grid-auto-flow property

grid_auto_rows

An optional string, if non-empty should be valid CSS code for the grid-auto-rows property

grid_gap

An optional string, if non-empty should be valid CSS code for the grid-gap property

grid_template_rows

An optional string, if non-empty should be valid CSS code for the grid-template-rows property

grid_template_columns

An optional string, if non-empty should be valid CSS code for the grid-template-columns property

grid_template_areas

An optional string, if non-empty should be valid CSS code for the grid-template-areas property

grid_row

An optional string, if non-empty should be valid CSS code for the grid-row property

grid_column

An optional string, if non-empty should be valid CSS code for the grid-column property

grid_area

An optional string, if non-empty should be valid CSS code for the grid-area property

Methods

Inherited methods


Method observe_border()

Synchronize border traits

Usage

LayoutClass$observe_border(nm, self, value)

Arguments

nm

Name of the trait (a dummy argument)

self

The object

value

A CSS string


Method new()

Initialize an object

Usage

LayoutClass$new(...)

Arguments

...

Arguments passed to the superclass initializer


Method clone()

The objects of this class are cloneable with this method.

Usage

LayoutClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.