View Source Moon.Lego.Checkbox (Moon v2.89.1)

Simple checkbox with or without selected mark to be used anywhere. Some SVG inside. Renders as a span

Properties

  • id :string - Id to be given to the HTML tag
  • testid :string - Data-testid attribute value
  • class :css_class - Class to be given to the visible checkbox
  • is_selected :boolean, from_context: :is_selected - If the checkbox has selected mark

Events

  • on_click - On_click event for the checkbox

Summary

Functions

Callback implementation for Surface.Component.render/1.