MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / getContextValue

Method getContextValue

src/Dropdown.js:228–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 }
227
228 getContextValue() {
229 return {
230 toggle: this.toggle,
231 isOpen: this.props.isOpen,
232 direction:
233 this.props.direction === 'down' && this.props.dropup
234 ? 'up'
235 : this.props.direction,
236 inNavbar: this.props.inNavbar,
237 disabled: this.props.disabled,
238 // Callback that should be called by DropdownMenu to provide a ref to
239 // a HTML tag that's used for the DropdownMenu
240 onMenuRef: this.handleMenuRef,
241 onToggleRef: this.handleToggleRef,
242 menuRole: this.props.menuRole,
243 };
244 }
245
246 getContainer() {
247 return this.containerRef.current;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected