button.rst 980 B

123456789101112131415161718192021222324252627282930313233
  1. Button Block
  2. ============
  3. The button block renders an HTML anchor styled as a button. This can be used to
  4. link to pages, documents, or external links.
  5. Example:
  6. .. figure:: images/button_example.jpeg
  7. :alt: default button styles
  8. default button styles
  9. Note this screen shot was taken using the default bootstrap colors. If you use a theme or change global colors with sass,
  10. they will likely be different colors.
  11. Field Reference
  12. ---------------
  13. Fields and purposes:
  14. .. include:: baselink.rst
  15. * **Button Title** - The text to show on the button. You can insert simple HTML
  16. here as well, such as ``Learn <b>More</b>``.
  17. * **Button Style** - The appearance of the button. This is a choice loaded from
  18. ``CRX_FRONTEND_BTN_STYLE_CHOICES`` Django setting and is inserted as a
  19. CSS class in the HTML.
  20. * **Button Size** - The size of button. This is a choice loaded from
  21. ``CRX_FRONTEND_BTN_SIZE_CHOICES`` Django setting and is inserted as a CSS
  22. class in the HTML.