How to inject your own custom buttons #1983
Replies: 3 comments 2 replies
-
Thank you for providing this feature. It was helpful. |
Beta Was this translation helpful? Give feedback.
-
Hi @edwardlee-msft |
Beta Was this translation helpful? Give feedback.
-
This can also be helpful for others debugging to grab the call Id right from the UI
In this example I have chosen to put the icons in the overflow. and when clicking on the button I will get my call id |
Beta Was this translation helpful? Give feedback.
-
We are pleased to present to you, Custom Button injection!
A very desirable feature that would allow contoso to add their own functional buttons into our composites. Rather than having to build out their communication experience using components, we want to make sure the ease of entry in injecting customer's own features is simple and achievable.
The goal is to allow customers to inject custom buttons into the control bar. The buttons would be populated into pre-designated area groups. As of now, custom buttons can be injected in 3 possible areas; the primary, the secondary, and the overflow.
There would also be a limit set on how many buttons are presented on the screen depending on the view (desktop/mobile). This would also imply a responsive design where any buttons that do not appear on the primary or the secondary control bar would be moved into the overflow menu.
At this moment, a custom button functionality is up to the Customer's imagination. Opening up a new tab, opening a pop up, a new window, creating alerts, etc.. We do not limit the customers ability, but we are exploring ideas where these buttons can trigger composite specific events, like possibly opening a custom side pane window in the composite with Customer provided view. Stay tuned for exciting future additions!
What the code could look like
CustomCallControlButtonCallback
,CustomCallControlButtonProps
,CustomCallControlButtonCallbackArgs
{ onFetchCustomButtonProps: <Array_of_CustomControlButtonCallback> }
Replace <Array_of_CustomControlButtonCallback> with
CustomCallControlButtonCallback[]
Example of a list of Custom Buttons:
Want to give it a try in our Call Composites? It's as easy as following the steps below
Here's what your custom buttons could look like!
FAQ
Q. How many buttons can be injected?
A. In desktop: primary = 3 custom buttons, secondary = 2 custom buttons
In Mobile: primary = 1 custom button, secondary = 0 custom buttons, overflow = ∞
Q. What Icons can be used?
A. Non-default icons that are already registered by the composites. Can be found in the storybook icons page. Replace the icons with your own images. You can also register your own icons to use in the Composites.
Q. Where do custom buttons go once injected into areas?
A. For Primary, they are injected at the right-end (left-end if rtl) of the area group but before the EndCallButton.
For Secondary, they are injected at the left-end (right-end if rtl) of the area group.
For Overflow, they are injected at the end of the overflow menu
Q. What about feature x, feature y, and feature z?
A. We are still hard at work on improving this specific feature. Lots of new and exciting additions will be made and are already being discussed/planned. Look out for the next big update 💯 !
Would you like to provide feedback? Please leave them below as a comment or through the feedback page and we will get back to you as soon as we can.
Beta Was this translation helpful? Give feedback.
All reactions