New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kiosk-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kiosk-autocomplete

A custom Vue autocomplete component compatible kiosk touchscreen keyboard

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

kiosk-autocomplete

kiosk-autocomplete is a Vue.js library that provides an autocomplete component designed specifically for compatibility with Kiosk Touchscreen Keyboards. This component allows users to easily search and select items from a predefined list using a touchscreen interface, making it ideal for kiosk applications.

Features

  • Touchscreen Compatibility: Designed to work seamlessly with touchscreen keyboards, enabling intuitive input for kiosk users.

  • Customizable Item Props: Customize how autocomplete items are displayed and mapped to values using the item-props property.

  • Flexible Filtering: Implement custom filtering logic using the custom-filter property to match items based on specific criteria.

Getting Started

To integrate kiosk-autocomplete into your Vue.js project, follow these steps:

  1. Install the package from npm:

    npm install kiosk-autocomplete
    
  2. Import the component into your Vue.js application:

    import KioskAutocomplete from 'kiosk-autocomplete';
    
  3. Use the component in your Vue template:

    <template>
      <div>
        <kiosk-autocomplete
          v-model="value"
          id="language"
          name="language"
          label="Language"
          :items="items"
          :item-props="(item: any) => ({ title: item.label, value: item.code, shortCode: item.shortCode })"
          kiosk-class="virtual-keyboard-input"
          :custom-filter="(query: string, item: any) => (item.title.toLowerCase().includes(query.toLowerCase()) || item.value.toLowerCase() === query.toLowerCase() || (item.shortCode && item.shortCode.toLowerCase() === query.toLowerCase()))"
        />
      </div>
    </template>
    
    <script>
    import KioskAutocomplete from 'kiosk-autocomplete';
    
    export default {
      components: {
        KioskAutocomplete,
      },
      data() {
        return {
          value: '',
          items: [/* Your autocomplete items here */],
        };
      },
    };
    </script>
    
  4. Customize the component properties (items, item-props, custom-filter, etc.) to suit your specific requirements.

Usage

  • v-model: Bind the selected value to a data property using v-model.

  • id, name, label: Provide metadata for the autocomplete input field.

  • items: Pass an array of items to be displayed in the autocomplete dropdown.

  • item-props: Define a function to customize how items are displayed and mapped to values.

  • custom-filter: Implement custom filtering logic to match items based on specific criteria.

  • kiosk-class: Apply a CSS class to style the autocomplete input for kiosk compatibility.

For more details on component usage and customization options, refer to the documentation provided with the library.

With kiosk-autocomplete, enhance your Vue.js kiosk applications with an intuitive and user-friendly autocomplete component tailored for touchscreen interactions.

Keywords

FAQs

Package last updated on 08 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc