Comments (3)
It would be nice to be able to specify the selectors, rather than relying on a particular HTML structure. So something like > this as the defaults:
{
slideEl : $(this).children('li'),
headerEl : $(this).find('h2'),
contentEl : $(this).children('li').children('div')
}
I can't think of any other structures that would make sense (semantically) in this context?
Also, I'm not sure why you need the DIV around the OL. Could the default structure not just be the following?
ol
-li
--h2
--div
I need the div as an extra hook for css styles. Plus I like the way it neatly encapsulates everything.
from liteaccordion.
For the selectors, I'm trying to implement code that's generated from a CMS. I have an extra DIV inside my LIs before I get the H2 and content DIV.
Also, H2 may not always be appropriate. My content is less valuable, and I'd prefer to make it a H4.
Flexibility is always good, and I don't think it would be much more work. It just opens up options. Just because you and I can't think of other semantic structures, doesn't mean they don't exist.
from liteaccordion.
Thanks for your feature request, but I won't be implementing it at this time.
from liteaccordion.
Related Issues (20)
- Multi select not working on popup in IE9 (std mode) HOT 5
- Wrong slide when using hash HOT 1
- Can select already selected slide. HOT 1
- Clicking on a slide that's already activated no longer close the slide HOT 1
- Uncaught TypeError: Object [object Object] has no method 'on' liteaccordion.jquery.js:183 HOT 1
- IE issues
- Figcaption bug HOT 1
- Not work at all on IE8
- for 7 items HOT 1
- eror liteaccordion js keep repeating load simplemodal js HOT 1
- Accordion slider HOT 1
- plz help me with this error! :( HOT 1
- How Vertical Align Accordeon lite Image or Remove Margin? HOT 1
- plugin not installing in wordpress HOT 1
- Window 7 issues HOT 1
- Left align onLoad HOT 2
- IE 10 problem HOT 3
- [enhancement] Add missing bower.json.
- Install lite accordian
- Flexible height issue
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 liteaccordion.