Skip to content

Instantly share code, notes, and snippets.

@nttan
Last active August 29, 2015 14:15
Show Gist options
  • Save nttan/afa69a31228504fe2cbd to your computer and use it in GitHub Desktop.
Save nttan/afa69a31228504fe2cbd to your computer and use it in GitHub Desktop.
add button on Backend Silverstripe CMS
$importLetMCbutton = FormAction::create('manualimport_LetMC', 'Start Import with LetMC')
->addExtraClass('ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary')
->setAttribute('data-icon', 'accept')
->setButtonContent('<span class="ui-button-icon-primary ui-icon btn-icon-accept"></span><span class="ui-button-text">Start Import with LetMC</span>')
->setUseButtonTag(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment