ID) ->addExtraClass('bulkSelect'); return $cb->Field(); } function getColumnAttributes($gridField, $record, $columnName) { return array('class' => 'col-bulkSelect'); } function getColumnMetadata($gridField, $columnName) { if($columnName == 'BulkSelect') { return array('title' => 'Select'); } } /* // GridField_ColumnProvider */ /** * * @param GridField $gridField * @return array */ public function getHTMLFragments($gridField) { Requirements::css(BULK_EDIT_TOOLS_PATH . '/css/GridFieldBulkManager.css'); Requirements::javascript(BULK_EDIT_TOOLS_PATH . '/javascript/GridFieldBulkManager.js'); $dropDownActionList = DropdownField::create('bulkActionName', '') ->setSource( array('edit' => 'Edit','unlink' => 'UnLink','delete' => 'Delete') ); $actionButton = FormAction::create('doBulkAction', 'GO') ->setAttribute('id', 'doBulkActionButton') //->addExtraClass('cms-panel-link') ->setAttribute('data-icon', 'pencil') ->setAttribute('data-url', $gridField->Link('bulkEdit')) ->setUseButtonTag(true); $html = '