code/panels/DashboardGridFieldPanel.php
public function getPrimaryActions() {
		if(!$this->SubjectPageID || !$this->GridFieldName) return false;
		$actions = parent::getPrimaryActions();
		$actions->push(DashboardPanelAction::create(
			$this->CreateModelLink(),
			_t('Dashboard.CREATENEWGRIDFIELD','Create new'),
			"good"
		));
		return $actions;
	}
public function getPrimaryActions() {
		if(!$this->SubjectPageID || !$this->GridFieldName) return false;
		$actions = parent::getPrimaryActions();
		$actions->push(DashboardPanelAction::create(
			$this->CreateModelLink(),
			_t('Dashboard.CREATENEWGRIDFIELD','Create new'),
			"good"
		));
		return $actions;
	}
Gets the actions for the top of the panel

@return FieldList