darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

feat(class) add ul and li class props #165

Closed darrenjennings closed 4 years ago

darrenjennings commented 4 years ago

Adds ability to specify liClass and ulClass in sections:

e.g.

sectionConfigs: {
  default: {
    limit: 4,
    ulClass: {'a-class-name-here': true },
    // applies to all `<li>` in default sections
    liClass: {'default-row': true }
  },
  Elf: {
    limit: 6,
    liClass: {'elf-row': true }
  }
},

Or if your item has a liClass on it, it will be used:

:suggestions="options"
options = [{id: 1, name: 'Gandalf', liClass: 'Gandalf'}]

Fixes #90

codecov-io commented 4 years ago

Codecov Report

Merging #165 into master will increase coverage by 1.78%. The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
+ Coverage   83.33%   85.11%   +1.78%     
==========================================
  Files           1        1              
  Lines         168      168              
  Branches       48       47       -1     
==========================================
+ Hits          140      143       +3     
+ Misses         12       11       -1     
+ Partials       16       14       -2
Impacted Files Coverage Δ
src/Autosuggest.vue 85.11% <87.5%> (+1.78%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bfe3e7c...a0a6b13. Read the comment docs.

Maybach91 commented 1 year ago

Can please update the documentation according to this?