[][src]Crate elvis_web

This library implements Elvis in browser, most of the contents are interfaces.

You can rust the web with this crate, and...no javascript usages in this doc mainly because rust-doc can not highlight javascript code, we strongly recommend you reading The Book if you wondering how to "calling elvis".

Macros

deref

shared deref to elvis widgets

into

shared into to elvis widgets

Structs

AlignStyle

AlignStyle Interface

Col

Col is the typical flow in html, with flexible enhance.

Colors

Colors interface

ContainerStyle

ContainerStyle Interface

Elvis

Elvis App entry

FlexBasis

FlexBasis interface

FlexStyle

FlexStyle Interface

Grid

Grid is quite complex in some way, usually, we just Grid our contains.

GridAuto

GridAuto interface

GridFlow

GridFlow interface

GridStyle

GridStyle Interface

GridTemplate

GridTemplate interface

List

List is a set of poor orphan children, dzn`t have any style, just blowing in the wind.

MultiColumn

Homework: code a New York Times.

MultiColumnStyle

GridStyle Interface

Row

Both Col and Row are using flex-start, if you want to reverse the children of them, better to work on the list order.

SizedBoxStyle

SizedBox interface

StyleSheet

style sheet

TextStyle

TextStyle Interface

Widget

basic widget without lifecycle nor state

Enums

Alignments

Alignments interface

FlexDirection

FlexDirection interface

MultiColumnLineStyle

MultiColumnLineStyle interface

Functions

align

Align inherits the core usage of Alignments, it's quite simple, just one property.

center

Center is a very nice widget, if your website only have a line of chars, use it!

container

To be honest, Container is a part of Flex family, but he is too brilliant to stay in Flex family, Layout calls him.

flex

This is the Lunatic Widget to Ground Control, 'I`m stepping throw the Window.'

img

If you don't want Image playing in background anonymously, just remove the child field.

sized_box

SizedBox just has width and height two arguments, we use this component to take some white space usually.

text

Text might be the most popular spider from Mars, Does it know the Great Ziggy Stardust?