PhoenixFeathers.SideBar (Phoenix Feathers v1.0.2-alpha) View Source

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(binary, params, socket)

View Source

Callback implementation for Phoenix.LiveComponent.handle_event/3.

Callback implementation for Phoenix.LiveComponent.mount/1.

Example

<%= live_component @socket,
    PhoenixFeathers.SideBar,
    id: "phoenix_feathers_side_bar",
    is_open: false
  do %>

  <div>
    My inner content
  </div>

<% end %>
<%= live_component @socket,
    PhoenixFeathers.SideBar,
    id: "phoenix_feathers_side_bar",
    is_open: false,
    open_icon: %PhoenixFeathers.Icon{name: :menu, color: "#fff"},
    close_icon: %PhoenixFeathers.Icon{name: :cheveron_left, color: "#fff"}
  do %>

  <div>
    My inner content
  </div>

<% end %>

Callback implementation for Phoenix.LiveComponent.update/2.