Class ThreadReactionBar
ThreadReactionBar UI element. Displays a row of reactions with an add-reaction button.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class ThreadReactionBar : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
ThreadReactionBar()
Default constructor.
Declaration
public ThreadReactionBar()
Fields
addButtonUssClassName
The ThreadReactionBar add button styling class.
Declaration
public const string addButtonUssClassName = "appui-thread-reaction-bar__add-button"
Field Value
| Type | Description |
|---|---|
| string |
ussClassName
The ThreadReactionBar main styling class.
Declaration
public const string ussClassName = "appui-thread-reaction-bar"
Field Value
| Type | Description |
|---|---|
| string |
Properties
contentContainer
The content container of the ThreadReactionBar.
Declaration
public override VisualElement contentContainer { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
Overrides
reactions
The reactions data source. Setting this rebuilds the reaction children.
Declaration
public IList<ReactionInfo> reactions { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<ReactionInfo> |
Events
reactionToggled
Event fired when a reaction is toggled. Parameters are (emoji, isAdding).
Declaration
public event Action<string, bool> reactionToggled
Event Type
| Type | Description |
|---|---|
| Action<string, bool> |