![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.
dompack-pulldown
Advanced tools
Yet another pulldown. The dompack pulldown differs from a lot of other select replacements in that it can
resize itself according to the size of the items in the pulldown, just like the original <select>
. Most other replacements
are either fixed width or rely on javascript to properly size themselves.
dompack-select observes the replaced <select>
element and will automatically update its contents if the select is
modified, and pick up any change to the value
or selectedIndex
property
dompack pulldown relies on dompack and SCSS, and leaves the choice of used classnames (except for a few internal classes you should never modify) to you.
Select a class, eg 'mypulldown', to use for your pulldowns. You can set up
different pulldowns using different classes. The example below simply takes
over all <select>
controls:
The JavaScript part:
import * as dompack from "dompack";
import Pulldown from "dompack-pulldown";
dompack.register('select', node => new Pulldown(node, 'mypulldown'));
The SCSS part, assuming you want each pulldown control and each item to be exactly 28px in height:
@import "~dompack-pulldown/styles/mixins";
.mypulldown
{
@include dompack-pulldown(28px);
}
You may want to disable this control on mobile devices. You could simply not invoke dompack.register on such devices, or use a media query to show/hide the original and new controls, eg:
.mypulldown
{
display:none; //By default, hide us
}
@media (min-width: 481px) // <=480px - native pulldown. >480px - replaced pulldown
{
.mypulldown
{
@include dompack-pulldown(28px);
}
}
Make sure you specified a height for the control itself.
FAQs
Dompack Pulldown
We found that dompack-pulldown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.