npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jquery-sth-select

v0.0.1

Published

A select component built with jQuery optimized for mobile platforms.

Downloads

4

Readme

Build Status


Table of contents

Project demo

Introduction

The jquery-sth-select select component is built on top of jQuery and offers a good interface for both Desktop and Mobile.

About the component

The component was created from a need: people can't customize native selects using CSS without tricks, and most custom selects in jQuery don't work so well on mobile devices.

The jquery-sth-select is useful for you if you:

  • Have an app built on top of jQuery;
  • Have a web application which needs a custom select interface (the native one does not look so well);
  • Have a responsive web application which needs a custom select that works both on Desktop and Mobile.

How to use in my project?

We're not officially being installed by npm, Bower or Yarn yet. But for now, if you want to test it, you can download the files available in /dist directory and link them in your .html file(s).

<head>
	<link rel="stylesheet" href="/path/to/jquery-sth-select/dist/sth-select.css" />
	<script type="text/javascript" src="/path/to/jquery-sth-select/dist/sth-select.js"></script>
</head>

How can I use it? Please, help me!

Wait, little grasshopper. We are not going to leave you in the lurch after made you excited with this awesome component.

HTML API

Creating a simple component just requires you add the sth-select attribute to your tag:

<select sth-select></select>

Also, you can add a title which appears on your select's popup:

<select
	sth-select
	sth-select-title="A title"
></select>

You might want to add a placeholder to your select when no item is selected.

<select
	sth-select
	sth-select-placeholder="A placeholder"
></select>

Sometimes, you have a lot of items and want to be able to search by them. But be aware: we have not the best search algorithm yet.

<select
	sth-select
	sth-select-filter="true"
></select>

Oh, and almost forgot: the filter field can also has a custom placeholder:

<select
	sth-select
	sth-select-filter-placeholder="Search for an item"
></select>

How to contribute?

AWESOME! This is exactly what we wanted to hear from you! :D

The first thing you must know: you don't need to be scared about "not being the best developer in the world". We highly encourage beginner developers to contribute with our code, because they can learn with the experienced developers and, at the same time, experienced developers can learn with them. Yes, beginner developers teach too.

If you want to contribute but you are not so sure about your code, make a Pull Request (PR) anyway. The team will not blame you; on the contrary, we can make constructive comments in your PR until you get it accepted.

Let's build a friendship. Help us. :)

To contribute, you must prepare your environment first following a few steps:

1) To start, the first thing is fork this repository to your GitHub profile. You can do it clicking on the "Fork" button on the top right corner. After forking, you need to clone the repository into your machine.

2) Being inside the project directory, install the dependencies from npm and Bower:

$ npm install && bower install

3 Now, concat your JavaScript and CSS files using the Gulp:

$ gulp vendor && gulp

Now, everything is ready. Just open the /example/index.html to test any changes you make. But don't forget: each modification, you might need to use the $ gulp command again.

Team members