semagrams.widgets

This package contains a variety of useful bits of UI to be used with GenericHTMLEntity and UIState

Attributes

Members list

Concise view

Type members

Classlikes

Directions on a computer screen

Directions on a computer screen

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
enum Margin

A typed wrapper around a margin specification

A typed wrapper around a margin specification

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Position

Some common positions

Some common positions

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Types

The position of an expandable box, given by a margin in each direction.

The position of an expandable box, given by a margin in each direction.

For instance, a left and right margin of auto centers the box.

Attributes

Value members

Concrete methods

def Popover($lines: Signal[Seq[String]], width: Double, ypadding: Double, innerSep: Double, eltDims: Complex): ReactiveSvgElement[SVGGElement]

A text box that displays over the window.

A text box that displays over the window.

Attributes

def PositionWrapper(p: Position, el: Element): ReactiveHtmlElement[HTMLDivElement]

Wrap el in a div to position it automatically using CSS

Wrap el in a div to position it automatically using CSS

Attributes

def Select[A](choices: Seq[(String, A)])(finished: Observer[A]): ReactiveHtmlElement[HTMLDivElement]

Returns a menu where choices are associated with values passed back, typically via UIState.dialogue

Returns a menu where choices are associated with values passed back, typically via UIState.dialogue

Attributes

def TextInput[A](v: LensedVar[A, String], multiline: Boolean)(finished: Observer[Unit]): ReactiveHtmlElement[HTMLTextAreaElement | HTMLInputElement]

Returns a text input box that is tied to v.

Returns a text input box that is tied to v.

Attributes

finished

This is used for the textbox to signal that it is done

multiline

Whether or not the textbox should be multiple lines

v

A LensedVar to keep in sync with the textbox

def Tip($tipText: Signal[Seq[String]], fontSize: String, pos: Complex): ReactiveSvgElement[SVGTextElement]

Returns a multiline text element that updates according to a signal.

Returns a multiline text element that updates according to a signal.

Useful for prompts and tutorials.

Attributes

Extensions

Extensions

extension (p: Position)
def toCSS: String