Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/darekf77/static-columns

Define columns with static width with Angular2 and FlexBox
https://github.com/darekf77/static-columns

angular-library pwa-demo

Last synced: about 1 month ago
JSON representation

Define columns with static width with Angular2 and FlexBox

Awesome Lists containing this project

README

        

# STATIC-COLUMNS - effortless Angular2+ layouts

# forget about flex box complicated rules !

With this simple library

**angular / html columns with static width**

mixed with

**columns with responsive width**

are not a problem anymore!

---
### How to install:
```
npm install static-columns --save
```

### Import it:
```ts
import { StaticColumnsModule } form "static-columns/browser"
```

### Put module inside angular imports:
```ts

@NgModule(
// ...
imports: [StaticColumnsModule]
// ...
)
class MyExampleModule {
// ...
}
```

# Examples

## Basic usage:
```html


something


ZAKRES





```

![Modules marked](screen.png)

## Hide/show column in mobile view:
```html


I am not visible when screen < 600px


I am visible only when screen < 600px

```

## Hide/show column in tablet view:
```html


I am not visible when screen > 600px and < 840 px


I am visible only when screen > 600px and < 840 px

```

## Hide/show column in desktop view:
```html


I am not visible when screen > 840 px


I am visible only when screen > 840 px

```