jellygnite/silverstripe-admin-toggle-checkbox

CSS only toggle that re-styles checkboxes in the admin

Installs: 16

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:silverstripe-vendormodule

4.0 2020-12-11 00:31 UTC

This package is auto-updated.

Last update: 2024-10-12 10:26:23 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