of

public static DialogManager.ActionButton of(JsonElement label, DialogManager.Action action)

Creates a button with the specified label and action.

Return

new action button

Parameters

label

text component for the button label

action

action to perform when clicked


public static DialogManager.ActionButton of(String label, DialogManager.Action action)

Convenience overload using a plain string label.

Return

new action button

Parameters

label

plain text label

action

action to perform