Surface.Constructs.For (surface v0.3.0) View Source

Provides an alternative to the :for directive for wrapping multiple elements in a for loop.

Examples

<For each={{ item <- @items }}>
  <a href={{ item.to }}>{{ item.label }}</a>
  <Icon name="cheveron_left" />
</For>

Properties

  • each :generator, required: true - The generator for the for expression.

Link to this section Summary

Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Callback implementation for c:Surface.BaseComponent.transform/1.

Link to this section Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Callback implementation for c:Surface.BaseComponent.transform/1.

Callback implementation for Phoenix.LiveComponent.update/2.