Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to start with a collapsed panel? #13

Open
fabrouy opened this issue Dec 1, 2017 · 0 comments
Open

Is it possible to start with a collapsed panel? #13

fabrouy opened this issue Dec 1, 2017 · 0 comments

Comments

@fabrouy
Copy link

fabrouy commented Dec 1, 2017

controller do
    def index
      left_sidebar!(collapsed: true)
      super
    end
end

I see collapsed: true adds the ability to collapse/expand the panel. However does not allow to start with a collapsed panel.

I would change collapsed to collapsible because collapsed sounds more like a state. And would add collapsed to config if panel appears collapsed/expanded on page load.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants