-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Demo: Tile layout for list items #4956
Comments
If I understand you correctly you mean automatically apply layout grids (http://jquerymobile.com/test/docs/content/content-grids.html). The framework has a grid function that adds the grid and block classes. This is used for the navbar, but you can use this function for other markup as well. You can specify the number of columns with the option
Here is a code example: http://jsbin.com/ikisux/7/edit If you just call Keep in mind that it's just a function and not a real widget. So a method like We will add this information to the docs. Important note: There was a bug in this function. In 1.1.1 and earlier versions specifying the number of columns does not work. This is fixed in latest code and 1.2. |
you could also set this up pretty easy by overriding the listview CSS. This way, the grid/tiles would adapt to the screen width vs being fixed in a grid-layout. |
Hello, thanks for your answers and the time spent. Thanks again. |
I'll post an example of how I'm doing this tomorrow. Maybe you can use it. |
ok. I just ripped this out of a page, so you will have to fit it to your need. To use it, set class
|
This is an absolute killer feature for any app since you don't wanna have one list item per row on a large wide screen. It's killing the user experience when it could have been showing 5-6 tiles per row. Excellent for results based on list filter. I could make a contribution of 200 dollars if this get released in the next version :) |
I think we could probably add a few demos or even a class you could tack on to make this work but there is a lot of variety in styles people might need. Good candidate for more demos in 1.3. |
Possible demos: Spring board style with smaller icons, photo grid, product result grid |
Sounds that you have covered all major styles. Good for me I was serious about that contribution :) |
We've decided to make a demo for this, but not shop it as part of the core library for 1.3 |
Why? I dont get the demo thing. How can we do the same thing? |
There will be a new demo site with 1.3 that will have lots of customization examples with code you can copy and paste. |
Hello everyone,
before using JQM, I used to code with Adobe Flex.
It has a feature that I'm missing a lot: the tile container:
http://www.adobe.com/devnet-archive/flex/tourdeflex/web/#docIndex=0;sampleId=4300;illustIndex=0
Would it be possible for you to add this feature?
The goal is to have a grid automatically created with equal sized tiles; so each list item is a tile.
I think this could be done using float:left.
The filter option would be a nice to have.
Thanks in advance
The text was updated successfully, but these errors were encountered: