views_examples
and views_examples_with_content
are executable tools to showcase all the Views components with some varied styles. The latter has extra support for web_view
as well.
views_examples
$ autoninja -C out/Default views_examples $ out/Default/views_examples
views_examples_with_content
$ autoninja -C out/Default views_examples_with_content $ out/Default/views_examples_with_content
Note: Both programs are available on all desktop platforms which support Views toolkit, except views_examples
is unavailable on Mac.
To run programs but only with specific examples enabled:
<output_dir>/<program> [--enable-examples=<example1,[example2...]>]
To get help from the programs:
<output_dir>/<program> --help
will print out the above usage info.
To list examples:
<output_dir>/<program> --enable-examples
will print out all names of available examples and execute as if all (the default) are specified.
After launching the executable, there is a list of all available examples to browse.
Use the scroll bar and select the example you'd like to browse. You can find how how these examples are created below in the examples section. Each example is linked to a corresponding source file with basic implementation details.
Contact the Views team if you have any questions.
The current available examples are listed below: