@semantic-ui-react/event-stack

  • Version 3.1.2
  • Published
  • 94.2 kB
  • 2 dependencies
  • MIT license

Install

npm i @semantic-ui-react/event-stack
yarn add @semantic-ui-react/event-stack
pnpm add @semantic-ui-react/event-stack

Overview

Issues mentioned in `README` should be solved by other approaches: - `.addEventListener()` is blazing fast and is not a real performance issue - to solve issues with ordering in case when regular DOM event propogation is not available consider to use thi

Index

Variables

variable instance

const instance: EventStack;

    Classes

    class EventStack

    class EventStack extends React.PureComponent<EventStackProps> {}
    • This component exposes the EventStack API as public and provides a declarative way to manage it.

    property defaultProps

    static defaultProps: { pool: string; target: string };

      property propTypes

      static propTypes: { name: any; on: any; pool: any; target: any };

        method componentDidMount

        componentDidMount: () => void;

          method componentDidUpdate

          componentDidUpdate: (prevProps: EventStackProps) => void;

            method componentWillUnmount

            componentWillUnmount: () => void;

              method render

              render: () => null;

                method subscribe

                subscribe: (props: Readonly<EventStackProps>) => void;

                  method unsubscribe

                  unsubscribe: (props: Readonly<EventStackProps>) => void;

                    Type Aliases

                    type CallableEventListener

                    type CallableEventListener = EventListener & {
                    called?: boolean;
                    };

                      type EventListeners

                      type EventListeners = CallableEventListener[];

                        type GenericMap

                        type GenericMap<T> = Map<String, T>;

                          type InputEventListener

                          type InputEventListener = EventListener | EventListener[];

                            type InputTargetElement

                            type InputTargetElement =
                            | boolean
                            | string
                            | TargetElement
                            | React.RefObject<TargetElement>;

                              type Options

                              type Options = {
                              pool?: string;
                              target?: InputTargetElement;
                              };

                                type TargetElement

                                type TargetElement = Document | HTMLElement | Window;

                                  Package Files (4)

                                  Dependencies (2)

                                  Dev Dependencies (41)

                                  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/@semantic-ui-react/event-stack.

                                  • Markdown
                                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@semantic-ui-react/event-stack)
                                  • HTML
                                    <a href="https://www.jsdocs.io/package/@semantic-ui-react/event-stack"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>