![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@gondel/plugin-media-queries
Advanced tools
Provide a custom gondel event which will fire once a given media query is met
import {initMediaQueriesPlugin} from '@gondel/plugin-media-queries';
initMediaQueriesPlugin({
breakPoints: {
xxsmall: 480,
xsmall: 768,
small: 992,
medium: 1240,
large: 1440,
xlarge: 1920,
xxlarge: Infinity,
}
});
Please note: the provided breakpoints need to be the maximum value of each viewport in px.
import { VIEWPORT_ENTERED } from '@gondel/plugin-media-queries';
The general viewport entered event is fired if the viewport switches into one of the provided breakpoints
@EventListener(VIEWPORT_ENTERED)
handleViewportChange(event) {
console.log(event.viewport);
}
Additionally, the event listener can be restricted to just one specific viewport
@EventListener(VIEWPORT_ENTERED, 'medium')
handleViewportChange(event) {
console.log('You are now on the medium viewport');
}
import { getCurrentViewport } from '@gondel/plugin-media-queries';
Additionally you can always get the current viewport name by using the
getCurrentViewport
helper.
start() {
console.log(getCurrentViewport());
// output's e.g. "medium"
}
The initMediaQueriesPlugin
has to be called before you call startComponents
.
FAQs
Provide a custom gondel event which will fire once a given media query is met
The npm package @gondel/plugin-media-queries receives a total of 0 weekly downloads. As such, @gondel/plugin-media-queries popularity was classified as not popular.
We found that @gondel/plugin-media-queries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.