0.0.1 • Published 2 years ago

applab-grid v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

AppLab's Grid Library

Installation

Install applab-grid with npm

  npm i applab-grid --save

Implementation

In the your module importa and add to imports the applabGridModule

import { applabGridModule } from 'applab-grid';

imports: [
    ...
    applabGridModule,
    ...
],

API Reference

Container

  <applab-container>
    .......................
  </applab-container>
Description
Container with 50px padding on top and bottom
and dynamic padding of 5% on left and right.

Rows

  <applab-rows [cols]="10">
    .......................
  </applab-rows>
ParameterTypeDescription
[cols]numberRequired. Number of culums for row

colums

    <applab-col [size]="10" [sizeXS]="10" 
                [sizeS]="10" [sizeM]="10" 
                [sizeL]="10" [sizeXL]="10">
        .......................
    </applab-col>
ParameterTypeDescription
[size]numberRequired. Container size automatic
[sizeXS]numberContainer size of 0px to 575px
[sizeS]numberContainer size equal or mayor to 576px
[sizeM]numberContainer size equal or mayor to 768px
[sizeL]numberContainer size equal or mayor to 992px
[sizeXL]numberContainer size equal or mayor to 1200px
[rows]numberrows using column 1 to 12 Default 1

*Note: The size of a container must be equal to or less than the number of columns in a row and the tag(s) must be inside a tag and the max number of columns on row is 12*

Usage/Examples

12 columns (max number of columns)

app-module

import { applabGridModule } from 'applab-grid';

imports: [
    ...
    applabGridModule,
    ...
],

app.component.html

<applab-container>
    <applab-rows [cols]="12">
        <applab-col   [size]="12" 
                      [sizeXS]="12" 
                      [sizeS]="6" 
                      [sizeM]="6" 
                      [sizeL]="4" 
                      [sizeXL]="3">
           contain
        </applab-col>

        <applab-col [size]="5">
            contain
        </applab-col>
    </applab-rows>
</applab-container>

10 colums

app-module

import { applabGridModule } from 'applab-grid';

imports: [
    ...
    applabGridModule,
    ...
],

app.component.html

<applab-container>
    <applab-rows [cols]="10">
        <applab-col [size]="10" 
                    [sizeXS]="10" 
                    [sizeS]="10" 
                    [sizeM]="10" 
                    [sizeL]="10" 
                    [sizeXL]="10">
           contain
        </applab-col>

        <applab-col [size]="5">
            contain
        </applab-col>
    </applab-rows>
</applab-container>
0.0.1

2 years ago