-
Notifications
You must be signed in to change notification settings - Fork 440
Autocomplete
Victor Pereira edited this page Apr 30, 2020
·
1 revision
if there is need for autocomplete in a form field. Please use the standard solution provided by OBS.
Check the autocomplete.js and excluded_requests#index.
We use the jQuery autocomplete plugin and we have a generic partial to handle it here
Basically:
- Create an autocomplete method in the controller, responding with the query in json. The param name is
term
.
Important: The returned data should be an array of strings.
- Add the
shared/_autocomplete
view to your form. It basically set all the necessary information in the autocomplete field.
Important: Pass the data: { source: ... }
pointing to your new autocomplete method
- 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