Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geneontology/wc-go-autocomplete

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geneontology/wc-go-autocomplete

Autocomplete Web Component for GO

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
73
increased by48.98%
Maintainers
5
Weekly downloads
 
Created
Source

Built With Stencil

GO Autocomplete Web Component

The GO Autocomplete is a Web Component to quickly find genes and terms used in GO http://geneontology.org/. It is used in the GO ribbon sandbox to help users find their genes of interest. Try the GO ribbon here: http://geneontology.org/ribbon.html

Getting Started

Script tag

  • Put a script tag <script src='https://unpkg.com/@geneontology/wc-go-autocomplete/dist/wc-go-autocomplete.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc
<html>
<head>
  <script type="module" src="https://unpkg.com/@geneontology/wc-go-autocomplete/dist/wc-go-autocomplete/wc-go-autocomplete.esm.js"></script>
  <script nomodule="" src="https://unpkg.com/@geneontology/wc-go-autocomplete/dist/wc-go-autocomplete/wc-go-autocomplete.js"></script>
</head>
<body>

    <wc-go-autocomplete id="ac"></wc-go-autocomplete>

    <!-- You can also listen to the selection of an item from the autocomplete -->
    <script>
      let elt = document.getElementById("ac");
      document.addEventListener("itemSelected", (evt) => {
        console.log("item selected: ", evt.detail);
      });
    </script>

</body>
</html>

Node Modules

  • Run npm install wc-go-autocomplete --save
  • Put a script tag similar to this <script src='node_modules/@geneontology/wc-go-autocomplete/dist/wc-go-autocomplete.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Additional note

The GO Autocomplete Web Component is powered by the GO API http://api.geneontology.org/{:target="blank"}

FAQs

Package last updated on 16 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc