Skip to content

Commit d94cf84

Browse files
committed
have to accept a title
1 parent 3695a29 commit d94cf84

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/peek_app_sdk/ui/odyssey/activity_picker.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
6060
<odyssey-product-picker
6161
id={"#{@id}_picker"}
6262
phx-update="ignore"
63-
title="Activity Picker"
6463
phx-target={@myself}
64+
title={@title}
6565
multiple={if(@multiple, do: "true", else: "false")}
6666
ids={process_ids_for_multi_select(@field.value)}
6767
products={Jason.encode!(@products)}
@@ -86,6 +86,7 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
8686
attr(:id, :string, doc: "component id, defaults to form_field_activity_picker")
8787
attr(:multiple, :boolean, default: false, doc: "whether to allow multiple selections")
8888
attr(:install_id, :string, required: true, doc: "the install id for the current partner")
89+
attr(:title, :string, default: "Activity Picker", doc: "the title for the picker")
8990

9091
def odyssey_activity_picker(assigns) do
9192
assigns =

0 commit comments

Comments
 (0)