@semantic-ui-react/event-stack
- Version 3.1.3
- 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: PropTypes.Validator<string>; on: PropTypes.Validator< ((...args: any[]) => any) | ((...args: any[]) => any)[] >; pool: PropTypes.Requireable<string>; target: PropTypes.Requireable<Object>;};
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)
- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/preset-env
- @babel/preset-react
- @babel/preset-typescript
- @types/exenv
- @types/jasmine
- @types/prop-types
- @types/react
- @types/react-test-renderer
- babel-plugin-istanbul
- babel-plugin-transform-react-remove-prop-types
- cross-env
- jasmine-core
- karma
- karma-chrome-launcher
- karma-coverage
- karma-firefox-launcher
- karma-ie-launcher
- karma-jasmine
- karma-rollup-preprocessor
- karma-spec-reporter
- lint-staged
- prettier
- react
- react-dom
- react-test-renderer
- release-it
- rollup
- rollup-plugin-babel
- rollup-plugin-commonjs
- rollup-plugin-node-resolve
- rollup-plugin-replace
- rollup-plugin-terser
- rollup-plugin-typescript2
- serve
- simulant
- tslint
- tslint-config-airbnb
- tslint-config-prettier
- typescript
Peer Dependencies (2)
Badge
To add a badge like this oneto 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>
- Updated .
Package analyzed in 1669 ms. - Missing or incorrect documentation? Open an issue for this package.