rc-collapse

  • Version 3.1.2
  • Published
  • 47.4 kB
  • 5 dependencies
  • MIT license

Install

npm i rc-collapse
yarn add rc-collapse
pnpm add rc-collapse

Overview

rc-collapse ui component for react

Index

Variables

variable Panel

const Panel: typeof CollapsePanel;

    Classes

    class Collapse

    class Collapse extends React.Component<CollapseProps, CollapseState> {}

      constructor

      constructor(props: CollapseProps);

        property defaultProps

        static defaultProps: {
        prefixCls: string;
        onChange(): void;
        accordion: boolean;
        destroyInactivePanel: boolean;
        };

          property getItems

          getItems: () => React.ReactElement<
          any,
          string | React.JSXElementConstructor<any>
          >[];

            property getNewChild

            getNewChild: (child: any, index: number) => any;

              property onClickItem

              onClickItem: (key: any) => void;

                property Panel

                static Panel: typeof CollapsePanel;

                  property setActiveKey

                  setActiveKey: (activeKey: React.Key[]) => void;

                    method getDerivedStateFromProps

                    static getDerivedStateFromProps: (
                    nextProps: CollapseProps
                    ) => Partial<CollapseState>;

                      method render

                      render: () => any;

                        method shouldComponentUpdate

                        shouldComponentUpdate: (
                        nextProps: CollapseProps,
                        nextState: CollapseState
                        ) => boolean;

                          Package Files (2)

                          Dependencies (5)

                          Dev Dependencies (20)

                          Peer Dependencies (2)

                          Badge

                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rc-collapse.

                          • Markdown
                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/rc-collapse)
                          • HTML
                            <a href="https://www.jsdocs.io/package/rc-collapse"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>