Slackblocks.Objects.FeedbackButton (slackblocks v2.8.0)
View SourceOne button of a feedback buttons element.
Slack reference: https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element
Fields
text— Sets the button label. Required.value— Sets the application-defined value sent in interaction payloads. Required.accessibility_label— Sets the label read by screen readers in place of the visible text. Optional;nilomits the field.
Summary
Functions
Atomically replaces supplied fields; omitted fields retain their values.
Replaces fields or raises Slackblocks.ValidationError.
Constructs and validates a value. Text conveniences apply to keyword input.
Constructs a value or raises Slackblocks.ValidationError.
Types
@type t() :: %Slackblocks.Objects.FeedbackButton{ accessibility_label: binary() | nil, text: Slackblocks.Objects.PlainText.t(), value: binary() }
Functions
@spec change( t(), keyword() ) :: {:ok, t()} | {:error, Slackblocks.ValidationError.t()}
Atomically replaces supplied fields; omitted fields retain their values.
Replaces fields or raises Slackblocks.ValidationError.
@spec new(keyword()) :: {:ok, t()} | {:error, Slackblocks.ValidationError.t()}
Constructs and validates a value. Text conveniences apply to keyword input.
Constructs a value or raises Slackblocks.ValidationError.