-
Notifications
You must be signed in to change notification settings - Fork 446
Autocomplete
Dario Leidi edited this page May 8, 2025
·
2 revisions
If there is need for autocomplete in a form field, please use the standard solution provided by OBS.
We use the jQuery autocomplete plugin implemented in autocomplete.js, and we have a generic partial to make use of it here
All you have to do is to:
- Create an autocomplete method in the controller (or use an existing one if any), responding with the query in json. The param name is
term
. Important: The returned data should be an array of strings. - Use the
shared/_search_box
partial (see a minimal example here). Important: Pass thedata: { source: <your_autocomplete_path> }
parameter.
- Development Environment Overview
- Development Environment Tips & Tricks
- Spec-Tips
- Code Style
- Rubocop
- Testing with VCR
- Authentication
- Authorization
- Autocomplete
- BS Requests
- Events
- ProjectLog
- Notifications
- Feature Toggles
- Build Results
- Attrib classes
- Flags
- The BackendPackage Cache
- Maintenance classes
- Cloud uploader
- Delayed Jobs
- Staging Workflow
- StatusHistory
- OBS API
- Owner Search
- Search
- Links
- Distributions
- Repository
- Data Migrations
- next_rails
- Ruby Update
- Rails Profiling
- Installing a local LDAP-server
- Remote Pairing Setup Guide
- Factory Dashboard
- osc
- Setup an OBS Development Environment on macOS
- Run OpenQA smoketest locally
- Responsive Guidelines
- Importing database dumps
- Problem Statement & Solution
- Kickoff New Stuff
- New Swagger API doc
- Documentation and Communication
- GitHub Actions
- How to Introduce Software Design Patterns
- Query Objects
- Services
- View Components
- RFC: Core Components
- RFC: Decorator Pattern
- RFC: Backend models
- RFC: Hotwire Turbo Frames Pattern