wedevelopnl / silverstripe-elemental-grid Goto Github PK
View Code? Open in Web Editor NEWConvert the silverstripe 4 elemental module to a grid module
License: MIT License
Convert the silverstripe 4 elemental module to a grid module
License: MIT License
It is possible to set a title on a grid row and configure whether it is displayed or not, however the default template will never render the title. The default row template should render the row title if set.
This weekend I've encountered some issue when I was trying to add a new element.
I've created a new Grid page, and tried to add a new element.
Then just nothing happens.
After some little investigation I've found a error in the console;
GraphQL error: Invalid CSRF token
Seems like we need to catch this error and show something on the front-end like;
"Session expired! Please refresh the page".
Right now I'm not 100% sure if this issue only occurs in our Elemental Grid, or also on the DNADesign/silverstripe-elemental
package without our Elemental Grid.
After some investigation, I found out that the console error is thrown inside the following vendor file;
_resources/vendor/silverstripe/admin/client/dist/js/vendor.js
For security reasons, CSRF token will get invalidate when you open dev tools (F12
) and view the admin in responsive.
So this makes it relative easy to reproduce the issue;
F12
(dev tools) => Toggle device toolbar (responsive view)There are some situations where you design a grid-block, that needs to be at least X cols width.
Right now, it is possible to create a grid-blocks with 1 col, but sometimes the grid block is not made to be smaller then 3 cols for example.
I think it would be a nice enchantment to have a OPTIONAL value on a GridBlock with min-col-size
that represends a intenger between 1 and 12.
I've opened this issue to discuss this enhancement. If think that this is a nice feature to add ๐
Hi,
Are you planning to update to elemental 4 any time soon?
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.