Giter Club home page Giter Club logo

collapse's People

Contributors

bmack avatar davidsteeb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

spoonerweb

collapse's Issues

wrong arrow icon after first click

I installed the extension and noticed that all content elements are now collapsed automatically by default (not sure if that is the intended behaviour). The to-top arrow is shown in the button.

grafik

when I click on the icon to expand the preview, the preview opens but the icon doesn't change:

grafik

it changes only after I click another time.

Feature request: extension configuration by user

Hi there, thank you for the extension, it is really promising. Sadly, I had to deinstall it for one of my clients, as one of the editors experienced severe problems (they would always find all of the items closed again, no status remembering for them). For the others, it worked fine, but as this is the power user, we had to reconsider.
I would like to ask for two configuration options per user, which would mitigate such problems and cater for personal preference.

  1. allow a user to deactivate the extension in their user settings. No trace will remain, or the collapse button will just be there but inactive, all items are open - like the ext was never there.
  2. allow initially all items to be open, not closed as in the current version. Editors can then choose whether to collapse all items (in their user settings) and use the ext as is now, or choose to have them all open and only collapse what is necessary.

Thank your for consideration and all the great extensions you provide.

Collapse state is not saved in user settings

Collapsing some elements on a page and later revisiting the same page with the same user displays all elements in the expanded state. According to readme, I would expect the state of collapsed elements to be restored.

Plans for v12 support

Hi there,

are there plans for a v12 support?
Would go deeper into that extension if there is no short-term plan or existing work which can be released soon.

Collapse state is still not saved in user settings

Collapsing some elements on a page and later revisiting the same page with the same user displays all elements in the expanded state. According to readme, I would expect the state of collapsed elements to be restored, same as #1.

I can confirm this behavior for TYPO3 11.5.30 and Collapse 1.0.0, the collapse state was not saved when I revisited the page.

After some troubleshooting, it looks like the field is not created in the user settings. You either do an addToList or removeFromList in PageModuleCollapse.js, but the field b13.collapse is never set.

I missed something like that in your PageModuleCollapse.js:

if (PersistentStorage.isset('B13.Collapse') === false) {
     PersistentStorage.set('B13.Collapse','');
}

On the first call, the field is created so that I can add or remove a value. This works for me.

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.