package stk

  1. Overview
  2. Docs

Notebook widget.

val active_page : int Props.prop

The "active_page" property, representing the 0-based index of the active (i.e. displayed) page in a notebook.

val tab_props : Props.t Props.prop

Property "tab_props" to store properties used for notebook tabs.

class notebook : ?class_:string option -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

Notebook widget.

val notebook : ?orientation:Props.orientation -> ?class_:string -> ?name:string -> ?props:Props.t -> ?pack:(Widget.widget -> unit) -> unit -> notebook

Convenient function to create a notebook. Default orientation is Horizontal. The class_ argument defaults to "vnotebook" if orientation is Vertical or "hnotebook" if orientation is Horizontal. See widget_arguments for other arguments.

val hnotebook : ?class_:string -> ?name:string -> ?props:Props.t -> ?pack:(Widget.widget -> unit) -> unit -> notebook

Same as notebook but orientation is already fixed to Horizontal.

val vnotebook : ?class_:string -> ?name:string -> ?props:Props.t -> ?pack:(Widget.widget -> unit) -> unit -> notebook

Same as notebook but orientation is already fixed to Vertical.

OCaml

Innovation. Community. Security.