Comments (3)
I had the same problem, here's my solution. Since "text-transform" didn't work cross-browser, I added to the JS file.
Right after:
field = name.replace(/data-/gi, "").replace(/-/gi, " ");
Insert this on the next line:
field = field.toLowerCase().replace(/\b[a-z]/g, function(letter) { return letter.toUpperCase(); });
That seemed to work for me.
from filtrify.
That's great! Thank you @gvilcins . I'll use your solution next time. This time I did a workaround: used CSS's "content" element to add a capitalized filter title in place of the icon font. The only catch is that you lose the little bulleted icon. My client liked the look of it though.
from filtrify.
Thank`s for the solution!
from filtrify.
Related Issues (20)
- TypeError: $(...).on is not a function HOT 2
- Filter and Menu manipulation
- multiple current states
- avoid duplicate info HOT 1
- pagination on header and footer
- margin problems
- A way to Sort data by Name and so on HOT 1
- Placeholder not populating HOT 1
- Is it possible to hide filtrify if empty?
- Question about checkbox HOT 1
- Jquery 2.1.1 HOT 4
- SCRIPT5009: « $ » est indéfini Uncaught ReferenceError: $ is not defined
- Limit number of selectable tags
- Z-index of number of items too high?
- Radio button / toggle
- Cascading filtrify, anyone?
- Jquery Latest HOT 3
- Somethings wrong with my filtify.js script in my scenario
- Add package.json for NPM Usage
- I'm not being able to see the search and filter option on any of the webpages when running locally. Can somebody please help me? Thanks.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filtrify.