![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
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
The npm package dompack-pulldown receives a total of 0 weekly downloads. As such, dompack-pulldown popularity was classified as not popular.
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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.