Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Form_Button button icons

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    1 Posts 1 Posters 739 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Steve_B Netgate
      last edited by

      font awesome icons may now be embedded in buttons created by the Form_Button class like so:

      
      $form->addGlobal(new Form_Button(
          'remove',
          'Remove Something',
          null,          //  <= optional link
          'fa-trash'     //  <= optional icon
      )->addClass('btn-success');
      
      

      Als ik kan

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.