inetis-ch / oc-listswitch-plugin Goto Github PK
View Code? Open in Web Editor NEWOctoberCMS plugin to add a toggleable switch as a column type to the backend.
Home Page: https://octobercms.com/plugin/inetis-listswitch
License: MIT License
OctoberCMS plugin to add a toggleable switch as a column type to the backend.
Home Page: https://octobercms.com/plugin/inetis-listswitch
License: MIT License
Hello,
I wonder if there is a plan to support others field types like textfields, dropdown etc...
Cause a module that would allow inline editing for specific fields directly on backend list would be awesome !
I think about the addition of a custom option in column.yaml file, for example if you add :
editable: true
To any column type, it transform it to an inline editing element.
Tailor plugins don't work when listswitch is installed:
Undefined property: stdClass::$columns
~/plugins/inetis/listswitch/Plugin.php line 50
Hi,
Great plugin that's work like a charme ... Thanks, great idea !
However, I have a problem with the relationship lists.
If I try to use the switch on relationship lists I get an error.`
In my case Vehicle and Equipment models with a pivot table that contains a boolean column to set the equipment as "top list".
pivot[is_top]:
label: Top
type: inetis-list-switch
Maybe because I'm trying to change a value on the pivot table !?
Hi,
I added a custom boolean column to my list by extending the Users controller, and would like to use this plugin to toggle quickly various properties.
When I use the 'switch' type, it works fine, but when I set the column type to inetis-list-switch
, I get an 'undefined index' error here:
private function getConfig($config = null)
{
if (is_null($config)) {
// this line generates the error
return self::$listConfig[$this->name];
}
return self::$listConfig[$this->name][$config];
}
It seems that the $listConfig array is not properly populated, but I'm not sure why.
Any ideas?
thanks for the excellent plugin
To preserve the sortable feature in plugin.php boot, there should be
if (isset($config['sortable'])) { $column['sortable'] = $config['sortable']; }
like it is for the label.
(could be for all config parameters actually)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.