mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
266 lines
9.9 KiB
266 lines
9.9 KiB
@page
|
|
@model Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components.GridsModel
|
|
@{
|
|
ViewData["Title"] = "Grids";
|
|
}
|
|
|
|
<h2>Grids</h2>
|
|
|
|
<p>Based on <a href="http://getbootstrap.com/docs/4.1/layout/grid/" target="_blank"> Bootstrap grid</a>.</p>
|
|
|
|
<h4># Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column size-sm="_6">One of two columns</abp-column>
|
|
<abp-column size-sm="_6">One of two columns</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column size-sm="_4">One of three columns</abp-column>
|
|
<abp-column size-sm="_4">One of three columns</abp-column>
|
|
<abp-column size-sm="_4">One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column size-sm="C6">One of two columns</abp-column>
|
|
<abp-column size-sm="C6">One of two columns</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column size-sm="C4">One of three columns</abp-column>
|
|
<abp-column size-sm="C4">One of three columns</abp-column>
|
|
<abp-column size-sm="C4">One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Break Column Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-col-break /> @* TODO: abp-column-break *@
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-col-break /> @* TODO: abp-column-break *@
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Vertical alignment Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-container>
|
|
<abp-row v-align="Start">
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row v-align="Center">
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row v-align="End">
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-container>
|
|
<abp-row v-align="Start">
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row v-align="Center">
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row v-align="End">
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
<abp-column>One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Vertical alignment Example 2</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column v-align="Start">One of three columns</abp-column>
|
|
<abp-column v-align="Center">One of three columns</abp-column>
|
|
<abp-column v-align="End">One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column v-align="Start">One of three columns</abp-column>
|
|
<abp-column v-align="Center">One of three columns</abp-column>
|
|
<abp-column v-align="End">One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Horizontal alignment Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-container>
|
|
<abp-row h-align="Start">
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="Center">
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="End">
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="Around">
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="Between">
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
<abp-column size="_4">One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-container>
|
|
<abp-row h-align="Start">
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="Center">
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="End">
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="Around">
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
</abp-row>
|
|
<abp-row h-align="Between">
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
<abp-column size="C4">One of three columns</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Order Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column> First, but unordered</abp-column>
|
|
<abp-column order="_12">Second, but last</abp-column>
|
|
<abp-column order="_1">Third, but first</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column> First, but unordered</abp-column>
|
|
<abp-column order="Last">Second, but last</abp-column>
|
|
<abp-column order="First">Third, but first</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-container>
|
|
<abp-row>
|
|
<abp-column> First, but unordered</abp-column>
|
|
<abp-column order="C12">Second, but last</abp-column>
|
|
<abp-column order="C1">Third, but first</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column> First, but unordered</abp-column>
|
|
<abp-column order="Last">Second, but last</abp-column>
|
|
<abp-column order="First">Third, but first</abp-column>
|
|
</abp-row>
|
|
</abp-container>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<h4># Offset Example</h4>
|
|
|
|
<div class="demo-with-code">
|
|
<div class="demo-area">
|
|
<abp-row>
|
|
<abp-column> .col-md-4</abp-column>
|
|
<abp-column size-md="_4" offset-md="_4">.col-md-4 .offset-md-4</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column size-md="_3" offset-md="_3">.col-md-3 .offset-md-3</abp-column>
|
|
<abp-column size-md="_3" offset-md="_3">.col-md-3 .offset-md-3</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column size-md="_6" offset-md="_3">.col-md-6 .offset-md-3</abp-column>
|
|
</abp-row>
|
|
</div>
|
|
<div class="code-area">
|
|
<pre>
|
|
<abp-row>
|
|
<abp-column> .col-md-4</abp-column>
|
|
<abp-column size-md="C4" offset-md="C4">.col-md-4 .offset-md-4</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column size-md="C3" offset-md="C3">.col-md-3 .offset-md-3</abp-column>
|
|
<abp-column size-md="C3" offset-md="C3">.col-md-3 .offset-md-3</abp-column>
|
|
</abp-row>
|
|
<abp-row>
|
|
<abp-column size-md="C6" offset-md="C3">.col-md-6 .offset-md-3</abp-column>
|
|
</abp-row>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<a asp-page="../">< back</a> |