src/FormFields/DropdownFormAction.php
public function Field($properties = array ())
    {
        Requirements::css(BETTER_BUTTONS_DIR . '/css/dropdown_form_action.css');
        Requirements::javascript(BETTER_BUTTONS_DIR . '/javascript/dropdown_form_action.js');
        $this->setAttribute('data-form-action-dropdown', '#' . $this->DropdownID());

        return parent::Field();
    }
public function Field($properties = array ())
    {
        Requirements::css(BETTER_BUTTONS_DIR . '/css/dropdown_form_action.css');
        Requirements::javascript(BETTER_BUTTONS_DIR . '/javascript/dropdown_form_action.js');
        $this->setAttribute('data-form-action-dropdown', '#' . $this->DropdownID());

        return parent::Field();
    }
Renders the button, includes the JS and CSS
@param array $properties