jellygnite / silverstripe-admin-toggle-checkbox
CSS only toggle that re-styles checkboxes in the admin
Package info
github.com/jellygnite/silverstripe-admin-toggle-checkbox
Language:CSS
Type:silverstripe-vendormodule
pkg:composer/jellygnite/silverstripe-admin-toggle-checkbox
5.0
2025-05-29 11:09 UTC
Requires
- silverstripe/admin: ~1 || ^2
- silverstripe/framework: ^4 || ^5
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2026-03-01 00:33:43 UTC
README
Introduction
Converts a checkbox to a toggle slider.
Installation
composer require jellygnite/silverstripe-admin-toggle-checkbox
Usage
Simply add the class 'toggle' to your CheckboxField. e.g.
CheckboxField::create('IsFeatured', 'Is Featured?')->addExtraClass('toggle'),
Based on https://github.com/i-lateral/silverstripe-admin-toggle-checkbox