Remedy.Schema.Component.Button (Remedy v0.6.8) View Source

Helpers for dealing with Button Components

Link to this section Summary

Functions

Create a button. This function provides direct access to the new/1 callback.

Disables the button.

Enables the button.

Create an interaction button. Read more about interaction buttons in the Nostrum.Struct.Component documentation.

Create a link button. Read more about link buttons in the Nostrum.Struct.Component documentation.

Changes the style of the button.

Toggle the buttons disabled state.

Link to this section Types

Link to this section Functions

Create a button. This function provides direct access to the new/1 callback.

Note: While using this function directly you are not guaranteed to return a valid button, providing a valid combination of options becomes the responsibility of the reader. It is instead recommended to use the helper functions provided below.

Disables the button.

Enables the button.

Link to this function

interaction_button(label, custom_id, opts \\ [])

View Source

Create an interaction button. Read more about interaction buttons in the Nostrum.Struct.Component documentation.

Link to this function

put_style(button, style)

View Source

Changes the style of the button.

Toggle the buttons disabled state.