question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Add `switch` field to `backpack/pro`

See original GitHub issue

I think we should move the toggle field type from a separate package… to the backpack/pro repo. But if we’re doing that, it’ll be a good time to also make the colors and stuff easy-to-customize, like @promatik did on the corresponding “editable column”.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tabacitucommented, Feb 14, 2022

Hmm you’re right @rroblik … once it’s free… we can’t really make it un-free. Don’t know how I missed that. So the free toggle package stays there, no way for us to close-source it at think point. Thanks for the observation.


Ok then… but I still want a supercharged field that does that. I want to be able to add switches to my admin panel instead of checkboxes, because that alone will make the form prettier, I think. And I want them to be customizable, to support as many variations as possible from what we offer in Backstrap:

  • MUST: easily change color;
  • SHOULD: easily choose the text on the switch (eg. ON / OFF);
  • SHOULD: easily choose an icon to show on the switch (eg. la la-warning);
  • SHOULD: easily make it small / medium / large;
  • COULD: easily change style (3d / 2d / square);
  • COULD: easily make it outline (so it doesn’t stand out as much);

So here’s what we can do:

  • keep the digitallyhappy/toggle-field-for-backpack as it is; free and open-source;
  • create a new field for backpack/pro, that we call switch;

Then people can use whatever they want, either the free toggle or the premium switch. People who use Backpack\CRUD have to install this additional package, which adds it but is not-so-feature-packed. People who use Backpack\PRO have it at hand always, and it’s feature-packed. Everybody wins.

1reaction
promatikcommented, Jun 24, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fields :: 5.x Docs - Backpack for Laravel
AboutField types define how the admin can manipulate an entry's values. They're used by the Create and Update operations.Think of the field type...
Read more >
Heritage Backpack Pro 21L | Herschel Supply Co.
Made for everyday journeys, the Thompson Pro backpack is refined with recycled fabric and a contoured design. Key Features. 100% recycled main body...
Read more >
The Backpack Pro - Spacious and multifunctional - Db Journey
A bestseller made sleek on the outside stacked with features on the inside. ... Add to Cart ... My DB Backpack Pro White...
Read more >
Torvol Quad Pitstop Backpack Pro - XBlades Edition - Gray
It features Torvol's PITSTOP area, where a smart zipper transforms the backpack into a portable workspace to adjust and modify your quads quickly...
Read more >
Laravel Backpack "Cannot find 'relationship' field view in any ...
You can see a breakdown of the free vs paid features here: ... If you do, what's the output of composer why backpack/pro...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found