Giter Club home page Giter Club logo

silverstripe-elemental-grid's People

Contributors

cornejong avatar dennisprins93 avatar dependabot[bot] avatar erikfrerejean avatar floriskroeze avatar michelsteege avatar renskorswagen avatar robertvanlienden avatar rskuipers avatar webmen-development avatar zerogiven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

silverstripe-elemental-grid's Issues

Default row template doesn't display the row title

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.

Can't add new elements, GraphQL error: Invalid CSRF token

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

Reproduction steps

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;

  • Go t admin => select a grid page
  • F12 (dev tools) => Toggle device toolbar (responsive view)
  • Add a new row/grid block and see that it won't get added. Now, the error shows up in the console

Idea; Make it possible to set a min-rows on a element

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 ๐Ÿ˜€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.