i-lateral / silverstripe-admin-toggle-checkbox
CSS only toggle that re-styles all checkboxes in the admin
Package info
github.com/i-lateral/silverstripe-admin-toggle-checkbox
Language:JavaScript
Type:silverstripe-vendormodule
pkg:composer/i-lateral/silverstripe-admin-toggle-checkbox
Requires
- silverstripe/admin: ~1.0
- silverstripe/framework: ~4.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2026-06-10 16:49:00 UTC
README
Simple module that re-styles all checkboxes in the admin as Toggle fields (thanks to https://www.w3schools.com/howto/howto_css_switch.asp for the base CSS to make this work)
NOTE: As SilverStripe 4 uses react to generate checkboxes, as of 1.1.* this module utilises a JavaScript mutator to detect changes to the DOM and then restructure checkbox elements based in order to style them (rather than utilising templates).
Install
Install using composer: composer require i-lateral/silverstripe-admin-toggle-checkbox
Usage
Just install the module and flush the cache. All Checkbox fields in the CMS will be automatically re-styled
