How to use the @instructure/ui-overlays/lib/Popover/locator.findContent function in @instructure/ui-overlays

To help you get started, we’ve selected a few @instructure/ui-overlays examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-menu / src / Menu / locator.js View on Github external
findPopoverContent: (...args) => {
    const { element, selector, options } = parseQueryArguments(...args)
    return PopoverLocator.findContent(element, selector, {
      ...options,
      customMethods: {
        ...options.customMethods,
        ...customMethods
      }
    })
  }
}
github instructure / instructure-ui / packages / ui-forms / src / DateInput / locator.js View on Github external
findDatePicker: async (element, ...args) => {
    const content = await PopoverLocator.findContent(element)
    return content ? DatePickerLocator.find(content.getDOMNode()) : null
  }
})