jellygnite/silverstripe-admin-toggle-checkbox

CSS only toggle that re-styles checkboxes in the admin

Maintainers

Package info

github.com/jellygnite/silverstripe-admin-toggle-checkbox

Language:CSS

Type:silverstripe-vendormodule

pkg:composer/jellygnite/silverstripe-admin-toggle-checkbox

Statistics

Installs: 17

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

5.0 2025-05-29 11:09 UTC

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