0.0.1 • Published 7 years ago

ember-html-grid v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ember-text-resize

HTML grid features to make life easier.

Installation

ember install ember-html-grid

Usage

Replace div by html-grid component to manipulate rows and columns.

Columns Auto Height

Make columns get the same height on all screen sizes.

{{#html-grid class="row" columns=".columns" columnsAutoHeight=true}}
	<div class="columns small-6 medium-3">
		One short line
	</div>
	<div class="columns small-6 medium-3">
		Line one<br>Line two<br>Line three
	</div>
	<div class="columns small-6 medium-3">
		Two lines<br>of description
	</div>
	<div class="columns small-6 medium-3">
		Just one line again
	</div>
{{/html-grid}}

Result on medium or greater screen
Columns Auto Height - Medium Screen
Result on small screen
Columns Auto Height - Small Screen

SettingTypeDescription
columnsstringSelector for html columns elements.
columnsAutoHeightboolean or stringActive columns auto height.
columnsAutoHeight Options
OptionDescription
allResize all columns based on the higher one. It's the same of true value.
same-rowResize the columns based on the higher one on the same row.
Same Row
{{#html-grid class="row" columns=".columns" columnsAutoHeight="same-row"}}
	<div class="columns small-6 medium-3">
		One short line
	</div>
	<div class="columns small-6 medium-3">
		Line one<br>Line two<br>Line three
	</div>
	<div class="columns small-6 medium-3">
		Two lines<br>of description
	</div>
	<div class="columns small-6 medium-3">
		Just one line again
	</div>
{{/html-grid}}

Result on medium or greater screen
Columns Auto Height - Medium Screen
Result on small screen
Columns Auto Height - Small Screen