OctantisWeb.Components.Polaris.ComplexAction (octantis v0.1.12)

View Source

Complex actions are an implied component in Polaris... Usually it is a button.

Examples

See

Summary

Functions

Complex actions are an implied component in Polaris... Usually it is a button.

Functions

attributes()

(macro)

complex_action(assigns)

Complex actions are an implied component in Polaris... Usually it is a button.

Examples

See

Attributes

  • id (:string) - A unique identifier for the action.
  • content (:string) - Content the action displays. Defaults to nil.
  • accessibility_label (:string) - Visually hidden text for screen readers.
  • url (:string) - A destination to link to, rendered in the action.
  • external (:boolean) - Forces url to open in a new tab.
  • disabled (:boolean) - Whether or not the action is disabled. Defaults to false.
  • full_width (:boolean) - Allows the button to grow to the width of its container. Defaults to false.
  • variant (:string) - Changes the visual appearance of the Button.Must be one of "plain", "primary", "secondary", "tertiary", or "monochromePlain".
  • tone (:string) - Sets the color treatment of the Button.Must be one of "critical", or "success".
  • size (:string) - Changes the size of the button, giving it more or less padding. Defaults to "medium".
  • icon (:any) - Source of the icon. Defaults to nil.
  • phx_click (:any) - Click function passed through to the button.
  • phx_values (:list) - A list of key value pairs to be passed as a value for actions. See assign_phx_bindings/2. Defaults to [].
  • navigate (:string) - Passes through to .link component.
  • patch (:string) - Passes through to .link component.
  • href (:string) - Passes through to .link component.
  • replace (:string) - Passes through to .link component.
  • method (:string) - Passes through to .link component.
  • csrf_token (:string) - Passes through to .link component.
  • target (:string) - Passes through to .link component.
  • style (:string) - Style attribute.
  • display (:string) - Style attribute.
  • margin (:string) - Style attribute.
  • max_height (:string) - Style attribute.
  • min_height (:string) - Style attribute.
  • object_fit (:string) - Style attribute.
  • flex_grow (:string) - Style attribute.
  • justify_content (:string) - Style attribute.
  • grid_auto_rows (:string) - Style attribute.
  • grid_template_columns (:string) - Style attribute.
  • grid_template_rows (:string) - Style attribute.
  • align_items (:string) - Style attribute.
  • align_self (:string) - Style attribute.
  • Global attributes are accepted.