|
Buttons initiate an immediate action. If you need to offer two opposing functions, such as Edit and Save, consider using two separate buttons instead of one dual-purpose button that changes state. CiviCRM provides a pre-themed button element, to be used for buttons throughout the system. Button elements may contain any of the optional icons provided by CiviCRM. The code to create a button with an icon: The code to create a button without an icon: an example using the "Edit" button from the Contact View page : |
Labels: