|  | 
| 1 |  | -#ArcBees GQuery Plugins | 
| 2 |  | - | 
| 3 |  | -##Plugins | 
| 4 |  | -<table> | 
| 5 |  | -  <tr> | 
| 6 |  | -    <th>Plugin</th> | 
| 7 |  | -    <th>Demo</th> | 
| 8 |  | -    <th>Demo Source</th> | 
| 9 |  | -    <th>Javadocs</th> | 
| 10 |  | -  </tr> | 
| 11 |  | -  <tr> | 
| 12 |  | -    <td><a href="https://github.com/ArcBees/ArcBees-GQuery-Plugins/tree/master/tooltip">Tooltip Home</a></td> | 
| 13 |  | -    <td><a href="http://arcbees.github.com/ArcBees-GQuery-Plugins/">Demo & Docs</a></td> | 
| 14 |  | -    <td><a href="https://github.com/ArcBees/ArcBees-GQuery-Plugins/tree/master/tooltip-sample/src/main/java/com/arcbees/gquery/tooltip/client">Source</a></td> | 
| 15 |  | -    <td><a href="http://arcbees.github.com/ArcBees-GQuery-Plugins/javadoc/apidocs/">Javadocs</a></td> | 
| 16 |  | -  </tr> | 
| 17 |  | -</table> | 
| 18 |  | - | 
| 19 |  | -##Contributor | 
| 20 |  | - | 
| 21 |  | -###Deploying | 
| 22 |  | -* Deploying Javadocs and site to GitHub use `mvn clean package site` | 
|  | 1 | +#GQuery Elastic Plugin | 
|  | 2 | + | 
|  | 3 | +##Description of the plugin | 
|  | 4 | +Elastic plugin takes the children of an element and rearranges them in a grid layout (like google+ or pinterest) | 
|  | 5 | + | 
|  | 6 | +##Examples | 
|  | 7 | +Check these 2 examples: | 
|  | 8 | + | 
|  | 9 | +http://arcbees.github.io/gwtquery-elastic-plugin/ElasticWidgetSample/WidgetSample.html | 
|  | 10 | + | 
|  | 11 | +http://arcbees.github.io/gwtquery-elastic-plugin/ElasticBasicSample/ElasticLayoutSample.html | 
|  | 12 | + | 
|  | 13 | +##How it works ? | 
|  | 14 | +To call the plugin: | 
|  | 15 | + | 
|  | 16 | +```java | 
|  | 17 | +    import static com.arcbees.gquery.elastic.client.Elastic.Elastic; | 
|  | 18 | + | 
|  | 19 | +    ElasticOption option = new ElasticOption() | 
|  | 20 | +           .withColumWidth(400) | 
|  | 21 | +           .withMinimalNumberOfColumn(2); | 
|  | 22 | + | 
|  | 23 | +            $("#container").as(Elastic).elastic(option); | 
|  | 24 | +``` | 
|  | 25 | + | 
|  | 26 | +or you can use an `ElasticHtmlPanel` and all direct children of the panel (html elements or widgets) will be rearranged in column. | 
|  | 27 | + | 
|  | 28 | + | 
|  | 29 | + | 
|  | 30 | +##How to configure it | 
|  | 31 | + | 
|  | 32 | +The different options are: | 
|  | 33 | +* _minimumColumnWidth_: Specify the minimum width of the column. The plugin uses this value to maximise the  | 
|  | 34 | +number of column to display. (default: 250px) | 
|  | 35 | +* _minimalNumberOfColumn_: Specify the minimum number of column. (default: 1) | 
|  | 36 | +* _maximumNumberOfColumn_: Specify the maximum number of column. (default: infinity) | 
|  | 37 | +* _maximumNumberOfColumn_: Specify the maximum number of column. (default: infinity) | 
|  | 38 | +* _InnerColumnMargin_: Specify the space between each column (default: 10px) | 
|  | 39 | +* _InnerRowMargin_: Specify the space between each row (default: 10px) | 
|  | 40 | +*_autoResize_: Specify if we have to recalculate the layout after a window resizing. (default: true) | 
|  | 41 | + | 
|  | 42 | +To specify this option, you can use an `ElasticOption` object and pass it to the plugin or uses the specific method directly on the ElasticHtmlPanel | 
|  | 43 | + | 
|  | 44 | +On each child we can specify the following attributes: | 
|  | 45 | +*_data-elastic-span_: specify the number of column to span for this child. | 
|  | 46 | +*_data-elastic-column_: Force the child to be displayed in a specific column. "first" and "last" values are also accepted and the child will be displayed respectively in the first of in the last column no matter the number of column | 
|  | 47 | + | 
|  | 48 | +## How to install | 
|  | 49 | + | 
|  | 50 | +There is no official release yet, but you can already use a snapshot version | 
|  | 51 | +###With maven : | 
|  | 52 | +```xml | 
|  | 53 | +    <dependency> | 
|  | 54 | +        <groupId>com.arcbees.gquery</groupId> | 
|  | 55 | +        <artifactId>elastic</artifactId> | 
|  | 56 | +        <version>1.0-SNAPSHOT</version> | 
|  | 57 | +    </dependency> | 
|  | 58 | +``` | 
|  | 59 | + | 
| 23 | 60 | 
 | 
| 24 | 61 | ##Thanks to | 
| 25 | 62 | [](http://arcbees.com) | 
| 26 | 63 | 
 | 
| 27 | 64 | [](http://www.jetbrains.com/idea/index.html) | 
| 28 | 65 | 
 | 
| 29 |  | -[](http://githalytics.com/ArcBees/ArcBees-GQuery-Plugins) | 
|  | 66 | +[](http://githalytics.com/ArcBees/gwtquery-elastic-plugin) | 
0 commit comments