Socket
Socket
Sign inDemoInstall

basic-collapsible-panel

Package Overview
Dependencies
2
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-collapsible-panel

A panel which can be collapsed/expanded with an animated transition.


Version published
Weekly downloads
4
increased by300%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

API Documentation

CollapsiblePanel ⇐ ElementBase

A panel which can be expanded/collapsed with an animated transition.

This component combines the OpenClose mixin and a simple CSS height animation.

This component handles only the duties of collapsing and expanding. It does not provide a user interface for the user to trigger the change in state; you must provide that user interface yourself.

Kind: global class Extends: ElementBase
Mixes: OpenClose

collapsiblePanel.close()

Close the component.

This is equivalent to setting the closed property to true.

Kind: instance method of CollapsiblePanel. Defined by OpenClose mixin.

collapsiblePanel.closed : boolean

True if the component is curently closed.

Kind: instance property of CollapsiblePanel. Defined by OpenClose mixin. Default: false

collapsiblePanel.open()

Open the component.

This is equivalent to setting the closed property to false.

Kind: instance method of CollapsiblePanel. Defined by OpenClose mixin.

collapsiblePanel.render(closing)

Perform custom rendering of the close/open transition.

You can override this method to perform custom effects. If you do so, be sure to invoke super() in your implementation to get the baseline behavior.

Kind: instance method of CollapsiblePanel. Defined by OpenClose mixin.

ParamTypeDescription
closingbooleanTrue if the component is being closed, false if it's being opened.

collapsiblePanel.toggle()

Toggle the component's open/closed state.

Kind: instance method of CollapsiblePanel. Defined by OpenClose mixin.

Keywords

FAQs

Last updated on 02 Jun 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc