1import { Controller } from "@hotwired/stimulus" 2import TomSelect from "tom-select" 3 4export const defaultSettings = { 5 placeholder: 'Vyberte hru â¦', 6 maxItems: 1, 7 maxOptions: 10, 8 openOnFocus: true, 9 closeAfterSelect: true, 10 hidePlaceholder: true, 11 // plugins: ['remove_button'], 12 preload: 'focus', 13 // valueField: 'id', 14 // searchField: ['title', 'name', 'text'], 15} 16 17export default class extends Controller { 18 connect() { 19 new TomSelect(this.element, defaultSettings) 20 } 21} 22
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.