Hello Lucid Developers,
I am extending my custom CardIntegration
with the ability for users to select assignees.
What I've Achieved So Far:
I can successfully display the current assignee's full name in a User Badge on the card.
My Challenge:
I need to make this User Badge interactive so that a user can click on it and select a different assignee from the available Lucid users. Currently, the field is read-only.
My Research and Proposed Solution:
From my search in the documentation, it seems I need to define the userSearchCallback
property for the User Badge. I encountered a roadblock where this property expects a string identifier, not a direct function reference.
My current working hypothesis is to:
-
Implement a callback function that handles the user search logic.
-
Register this function using
LucidCardIntegrationRegistry.registerUserSearchCallback(mySearchFunction)
. -
Use the string identifier returned by the registration function as the value for the
userSearchCallback
property.
My Questions:
-
Is this the correct and intended approach for implementing the assignee selection feature?
-
Could you please point me to the specific documentation that details how to integrate an interactive assignee/user search?
-
Are there any example implementations or code snippets available that demonstrate this functionality?
Thank you for your help!