popcicle

Types

pub type PopcicleConfig {
  PopcicleConfig(css: String, click_gap: Int, hover_gap: Int)
}

Constructors

  • PopcicleConfig(css: String, click_gap: Int, hover_gap: Int)
pub type PrefferedPosition {
  TopLeft
  TopCenter
  TopRight
  RightTop
  RightCenter
  RightBottom
  BottomLeft
  BottomCenter
  BottomRight
  LeftTop
  LeftCenter
  LeftBottom
}

Constructors

  • TopLeft
  • TopCenter
  • TopRight
  • RightTop
  • RightCenter
  • RightBottom
  • BottomLeft
  • BottomCenter
  • BottomRight
  • LeftTop
  • LeftCenter
  • LeftBottom
pub type ShowType {
  Click
  Hover
}

Constructors

  • Click
  • Hover

Functions

pub fn contains(element: Element, other: Element) -> Bool
pub fn default_config() -> PopcicleConfig
pub fn initialize(
  config: PopcicleConfig,
  cb: fn() -> Element(a),
) -> Element(a)
pub fn popcicle(
  child: Element(a),
  position: PrefferedPosition,
  popcicle: Element(a),
  show_on: ShowType,
) -> Element(a)
Search Document