1.0.6 • Published 6 years ago

dimension-setter v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

dimension-setter

Usage:

var DimSet = require('dimension-setter');

You can set and return the width/height of an element.
Set Height: DimSet.setHeight(string|object);

Set Width: DimSet.setWidth(string|object);

Return Height: DimSet.getHeight(string|object);

Return Width: DimSet.getWidth(string|object);

Examples:
DimSet.getWidth('#div-id');
or
DimSet.getWidth(document.getElementById('#div-id'));

Sometimes you need to set the height and/or width of a DOM element. Whatever the reason, I'm not here to judge, this plugin might help.

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago