package stk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stk.ContainerSource

Container widget.

Sourcetype 'a child = {
  1. widget : Widget.widget;
  2. mutable data : 'a;
}

A container child, parametrized by the type of the associated data.

Sourceclass virtual 'a container : ?class_:string option -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

A container widget is a widget which can contain a list of widgets. Each widget can be associated to additional data 'a, so each container has type ['a] container. This class must be inherited (as it is for example by Pack.box or Pack.paned).