externalAction.go 825 B

12345678910111213141516171819
  1. package models
  2. // ExternalAction is a link that will open as a 3rd party action.
  3. type ExternalAction struct {
  4. // URL is the URL to load.
  5. URL string `json:"url"`
  6. // HTML is the HTML to embed into the modal. When this is set, OpenExternally and URL are ignored
  7. HTML string `json:"html"`
  8. // Title is the name of this action, displayed in the modal.
  9. Title string `json:"title"`
  10. // Description is the description of this action.
  11. Description string `json:"description"`
  12. // Icon is the optional icon for the button associated with this action.
  13. Icon string `json:"icon"`
  14. // Color is the optional color for the button associated with this action.
  15. Color string `json:"color"`
  16. // OpenExternally states if the action should open a new tab/window instead of an internal modal.
  17. OpenExternally bool `json:"openExternally"`
  18. }