Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-forms
Merge requests
!32
feature: toggle field
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
feature: toggle field
feature/toggle-field
into
master
Overview
9
Commits
9
Pipelines
7
Changes
3
All threads resolved!
Hide all comments
Merged
Eryk Mika
requested to merge
feature/toggle-field
into
master
2 months ago
Overview
9
Commits
9
Pipelines
7
Changes
3
All threads resolved!
Hide all comments
0
0
Merge request reports
Viewing commit
ff5f0a03
Prev
Next
Show latest version
3 files
+
74
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
ff5f0a03
feature: toggle field
· ff5f0a03
Eryk Mika
authored
2 months ago
src/Field/ToggleField.php
0 → 100644
+
14
−
0
View file @ ff5f0a03
Edit in single-file editor
Open in Web IDE
<?php
namespace
WPDesk\Forms\Field
;
class
ToggleField
extends
CheckboxField
{
public
function
__construct
()
{
$this
->
add_class
(
'wpd-toggle-field'
);
}
public
function
get_template_name
():
string
{
return
'input-toggle'
;
}
}
Loading