ic3
ic3

Reputation: 7680

Codemirror - Hints/Autocomplete with separator

Is there an easy way to add a separator in the hints/autocomplete addon ?

The separator would make the suggestion box look like:

f1
f2
f3
---
var1
var2

Upvotes: 0

Views: 195

Answers (1)

Marijn
Marijn

Reputation: 8929

You can attach className properties to completions that will be given to the completion's DOM element. If you style some completions with a border-bottom, that'll look like a separator.

Upvotes: 1

Related Questions