jiro-ui
Version:
A Mithril.js UI library based from construct-ui
18 lines (15 loc) • 750 B
text/typescript
import m from 'mithril';
import { Col, Grid } from '@/';
import { Example } from '@shared/examples';
const EXAMPLE_SRC = 'components/grid/examples/offset.ts';
export class GridOffsetExample {
public view() {
return m(Example, { class: 'cui-example-grid', center: false, src: EXAMPLE_SRC }, [
m(Grid, m(Col, { span: 2, offset: 10 }, m('.cui-example-grid-col', 'offset-10'))),
m(Grid, m(Col, { span: 3, offset: 9 }, m('.cui-example-grid-col', 'offset-9'))),
m(Grid, m(Col, { span: 4, offset: 8 }, m('.cui-example-grid-col', 'offset-8'))),
m(Grid, m(Col, { span: 5, offset: 7 }, m('.cui-example-grid-col', 'offset-7'))),
m(Grid, m(Col, { span: 6, offset: 6 }, m('.cui-example-grid-col', 'offset-6')))
]);
}
}