Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@myuw-web-components/myuw-search
Advanced tools
A material search field made for use with MyUW web components
<myuw-search>
Include the component as follows:
<!-- import the module -->
<script type="module" src="https://cdn.my.wisc.edu/@myuw-web-components/myuw-search@latest/myuw-search.min.mjs"></script>
<!-- fallback for browsers without ES2015 module support -->
<script nomodule src="https://cdn.my.wisc.edu/@myuw-web-components/myuw-search@latest/myuw-search.min.js"></script>
<myuw-search
slot="myuw-search"
input-label="Search MyUW"
button-label="Submit search"
icon="search"
></myuw-search>
Note: The evergreen "latest" version can be used for convenience, but in production settings it is recommended to use the latest release version specifically, and upgrade only after testing!
Listen for the myuw-search
CustomEvent and process the value how you like:
/*
1. Listen for myuw-search event
2. Get the event data from event.detail.value
3. Do what you want with the search term!
*/
document.body.addEventListener('myuw-search', (event) => {
const valueFromSearchBar = event.detail.value // "detail" object is part of CustomEvent spec
/*
Perform search logic here. For example:
- Pass the search value as a parameter to your app's search page
*/
}, false );
none
.To run the demo app locally and test the component, run the following commands:
$ npm install
$ npm start
1.5.1
FAQs
A material search field made for use with MyUW web components
The npm package @myuw-web-components/myuw-search receives a total of 346 weekly downloads. As such, @myuw-web-components/myuw-search popularity was classified as not popular.
We found that @myuw-web-components/myuw-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.