SurfaceBulma.Form.Label (surface_bulma v0.6.0)

Properties

  • values :keyword, default: [] - List values that will be sent as part of the payload triggered by an event

  • form :form, from_context: {Surface.Components.Form, :form} - The form identifier

  • field :any, from_context: {Surface.Components.Form.Field, :field} - The field name

  • text :any - The text for the generated <label> element, if no content (default slot) is provided.

  • opts :keyword, default: [] - Options list

  • class :css_class, default: default - Additional CSS classes, default is: "label"

Slots

  • default, arg: %{field: :any}

Events

  • window_keyup - Triggered when a key on the keyboard is released (window-level)
  • window_keydown - Triggered when a key on the keyboard is pressed (window-level)
  • keyup - Triggered when a key on the keyboard is released
  • keydown - Triggered when a key on the keyboard is pressed
  • window_focus - Triggered when the page receives focus
  • window_blur - Triggered when the page loses focus
  • focus - Triggered when the component receives focus
  • blur - Triggered when the component loses focus
  • capture_click - Triggered when the component captures click
  • click_away - Triggered when a click event happens outside of the element
  • click - Triggered when the component receives click

Summary

Functions

Link to this function

render(assigns)

Callback implementation for Surface.Component.render/1.