SurfaceBulma.Form.Label (surface_bulma v0.5.1)

properties

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

Slots

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

events

Events

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

Link to this section Summary

Link to this section Functions

Link to this function

render(assigns)

Callback implementation for Surface.Component.render/1.