|
|
|
@ -7,19 +7,32 @@
|
|
|
|
|
@section styles {
|
|
|
|
|
<abp-style-bundle>
|
|
|
|
|
<abp-style src="/css/demo.css" />
|
|
|
|
|
<abp-style src="/libs/highlight.js/styles/default.css" />
|
|
|
|
|
</abp-style-bundle>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@section scripts {
|
|
|
|
|
<abp-script-bundle>
|
|
|
|
|
@*<abp-script src="/libs/highlight.js/lib/highlight.js" />
|
|
|
|
|
<abp-script src="/Pages/Components/highlightCode.js" />*@
|
|
|
|
|
</abp-script-bundle>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet"
|
|
|
|
|
href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/default.min.css">
|
|
|
|
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
|
|
|
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
|
|
|
|
|
|
|
|
<h2>Buttons</h2>
|
|
|
|
|
|
|
|
|
|
<p>Based on <a href="http://getbootstrap.com/docs/4.1/components/buttons/" target="_blank"> Bootstrap button</a>.</p>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
<h4>Examples</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<abp-button text="Default" />
|
|
|
|
|
<abp-button button-type="Primary">Primary</abp-button>
|
|
|
|
|
<abp-button button-type="Primary" text="Primary" />
|
|
|
|
|
<abp-button button-type="Secondary">Secondary</abp-button>
|
|
|
|
|
<abp-button button-type="Success">Success</abp-button>
|
|
|
|
|
<abp-button button-type="Danger">Danger</abp-button>
|
|
|
|
@ -30,22 +43,76 @@
|
|
|
|
|
<abp-button button-type="Link">Link</abp-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-button text="Default"/>
|
|
|
|
|
<abp-button button-type="Primary">Primary</abp-button>
|
|
|
|
|
<abp-button button-type="Secondary">Secondary</abp-button>
|
|
|
|
|
<abp-button button-type="Success">Success</abp-button>
|
|
|
|
|
<abp-button button-type="Danger">Danger</abp-button>
|
|
|
|
|
<abp-button button-type="Warning">Warning</abp-button>
|
|
|
|
|
<abp-button button-type="Info">Info</abp-button>
|
|
|
|
|
<abp-button button-type="Light">Light</abp-button>
|
|
|
|
|
<abp-button button-type="Dark">Dark</abp-button>
|
|
|
|
|
<abp-button button-type="Link">Link</abp-button>
|
|
|
|
|
</pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button> Default </abp-button>
|
|
|
|
|
<abp-button button-type="Primary">Primary</abp-button>
|
|
|
|
|
<abp-button button-type="Secondary">Secondary</abp-button>
|
|
|
|
|
<abp-button button-type="Success">Success</abp-button>
|
|
|
|
|
<abp-button button-type="Danger">Danger</abp-button>
|
|
|
|
|
<abp-button button-type="Warning">Warning</abp-button>
|
|
|
|
|
<abp-button button-type="Info">Info</abp-button>
|
|
|
|
|
<abp-button button-type="Light">Light</abp-button>
|
|
|
|
|
<abp-button button-type="Dark">Dark</abp-button>
|
|
|
|
|
|
|
|
|
|
<abp-button button-type="Link">Link</abp-button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button type="button" class="btn">Default</button>
|
|
|
|
|
<button type="button" class="btn btn-primary">Primary</button>
|
|
|
|
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
|
|
|
<button type="button" class="btn btn-success">Success</button>
|
|
|
|
|
<button type="button" class="btn btn-danger">Danger</button>
|
|
|
|
|
<button type="button" class="btn btn-warning">Warning</button>
|
|
|
|
|
<button type="button" class="btn btn-info">Info</button>
|
|
|
|
|
<button type="button" class="btn btn-light">Light</button>
|
|
|
|
|
<button type="button" class="btn btn-dark">Dark</button>
|
|
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-link">Link</button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4>Button tags</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<a abp-button="Primary" href="#">Link</a>
|
|
|
|
|
<abp-button button-type="Primary" type="submit" text="Button" />
|
|
|
|
|
<input abp-button="Primary" value="Input" />
|
|
|
|
|
<input abp-button="Primary" type="submit" value="Submit" />
|
|
|
|
|
<input abp-button="Primary" type="reset" value="Reset" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<a abp-button="Primary" href="#">Link</a>
|
|
|
|
|
<abp-button button-type="Primary" type="submit" text="Button"/>
|
|
|
|
|
<input abp-button="Primary" value="Input" />
|
|
|
|
|
<input abp-button="Primary" type="submit" value="Submit" />
|
|
|
|
|
<input abp-button="Primary" type="reset" value="Reset" />
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<a class="btn btn-primary" href="#" role="button">Link</a>
|
|
|
|
|
<button class="btn btn-primary" type="submit">Button</button>
|
|
|
|
|
<input class="btn btn-primary" type="button" value="Input">
|
|
|
|
|
<input class="btn btn-primary" type="submit" value="Submit">
|
|
|
|
|
<input class="btn btn-primary" type="reset" value="Reset">
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
<h4>Outline buttons</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
@ -59,7 +126,9 @@
|
|
|
|
|
<abp-button button-type="Outline_Dark">Dark</abp-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button button-type="Outline_Primary">Primary</abp-button>
|
|
|
|
|
<abp-button button-type="Outline_Secondary">Secondary</abp-button>
|
|
|
|
|
<abp-button button-type="Outline_Success">Success</abp-button>
|
|
|
|
@ -68,133 +137,211 @@
|
|
|
|
|
<abp-button button-type="Outline_Info">Info</abp-button>
|
|
|
|
|
<abp-button button-type="Outline_Light">Light</abp-button>
|
|
|
|
|
<abp-button button-type="Outline_Dark">Dark</abp-button>
|
|
|
|
|
</pre>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button type="button" class="btn btn-outline-primary">Primary</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-secondary">Secondary</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-success">Success</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-danger">Danger</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-warning">Warning</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-info">Info</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-light">Light</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-dark">Dark</button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
<h4>Sizes</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area" style="margin: 35px;">
|
|
|
|
|
<a abp-button="Primary" href="#">Link</a>
|
|
|
|
|
<abp-button button-type="Primary" type="submit" text="Button" />
|
|
|
|
|
<input abp-button="Primary" value="Input" />
|
|
|
|
|
<input abp-button="Primary" type="submit" value="Submit" />
|
|
|
|
|
<input abp-button="Primary" type="reset" value="Reset" />
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<abp-button size="Large" button-type="Primary" text="Large button" />
|
|
|
|
|
<abp-button size="Large" button-type="Secondary" text="Large button" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<a abp-button="Primary" href="#">Link</a>
|
|
|
|
|
<abp-button button-type="Primary" type="submit" text="Button"/>
|
|
|
|
|
<input abp-button="Primary" value="Input" />
|
|
|
|
|
<input abp-button="Primary" type="submit" value="Submit" />
|
|
|
|
|
<input abp-button="Primary" type="reset" value="Reset" />
|
|
|
|
|
</pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button size="Large" button-type="Primary" text="Large button" />
|
|
|
|
|
<abp-button size="Large" button-type="Secondary" text="Large button" />
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-lg">Large button</button>
|
|
|
|
|
<button type="button" class="btn btn-secondary btn-lg">Large button</button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<abp-button size="Default" text="Default" />
|
|
|
|
|
<abp-button size="Small" text="Small" />
|
|
|
|
|
<abp-button size="Medium" text="Medium" />
|
|
|
|
|
<abp-button size="Large" text="Large" />
|
|
|
|
|
<abp-button size="Small" button-type="Primary" text="Small button" />
|
|
|
|
|
<abp-button size="Small" button-type="Secondary" text="Small button" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-button size="Default" text="Default" />
|
|
|
|
|
<abp-button size="Small" text="Small" />
|
|
|
|
|
<abp-button size="Medium" text="Medium" />
|
|
|
|
|
<abp-button size="Large" text="Large" />
|
|
|
|
|
</pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button size="Small" button-type="Primary" text="Small button" />
|
|
|
|
|
<abp-button size="Small" button-type="Secondary" text="Small button" />
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm">Small button</button>
|
|
|
|
|
<button type="button" class="btn btn-secondary btn-sm">Small button</button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<abp-button block="true" text="Block" />
|
|
|
|
|
<abp-button size="Block" button-type="Primary" text="Block level button" />
|
|
|
|
|
<abp-button size="Block" button-type="Secondary" text="Block level button" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-button block="true" text="Block" />
|
|
|
|
|
</pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button size="Block" button-type="Primary" text="Block level button" />
|
|
|
|
|
<abp-button size="Block" button-type="Secondary" text="Block level button" />
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
|
|
|
|
|
<button type="button" class="btn btn-secondary btn-lg btn-block">Block level button</button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
|
|
|
|
|
<h4> Icon</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<abp-button icon="pencil" text="With Icon" />
|
|
|
|
|
<abp-button icon-type="FontAwesome" icon="info" text="With Icon" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button icon="pencil" text="With Icon"/>
|
|
|
|
|
<abp-button icon-type="FontAwesome" icon="info" text="With Icon"/>
|
|
|
|
|
</pre>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button class="btn" type="button"><i class="fa fa-pencil"></i> <span>With Icon</span></button>
|
|
|
|
|
<button class="btn" type="button"><i class="fa fa-info"></i> <span>With Icon</span></button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="attribute-area">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<b>icon-type</b>: Formats the icon attribute. Default value is FontAwesome.
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<b>icon</b>: Sets icon to button.
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Example</h4>
|
|
|
|
|
|
|
|
|
|
<h4> Busy Text Example</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<abp-button text="Busy" busy-text="Saving..." />
|
|
|
|
|
<abp-button text="Busy" busy-text="Saving..."/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Tag Helper">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-button text="Busy" busy-text="Saving..."/>
|
|
|
|
|
</pre>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Generated">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<button class="btn" type="button" data-busy-text="Saving..."><span>Busy</span></button>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="attribute-area">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<b>busy-text</b>: Sets "data-busy-text" attribute. Default value is localization of "ProcessingWithThreeDot" string.
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4># Group Examples</h4>
|
|
|
|
|
@*<h4># Group Examples</h4>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
|
|
|
|
|
<abp-button-group>
|
|
|
|
|
<abp-button>Left</abp-button>
|
|
|
|
|
<abp-button>Middle</abp-button>
|
|
|
|
|
<abp-button>Right</abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
<abp-button-group>
|
|
|
|
|
<abp-button>Left</abp-button>
|
|
|
|
|
<abp-button>Middle</abp-button>
|
|
|
|
|
<abp-button>Right</abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
|
|
|
|
|
<abp-button-group size="Large">
|
|
|
|
|
<abp-button button-type="Primary">Primary</abp-button>
|
|
|
|
|
<abp-button button-type="Secondary">Secondary</abp-button>
|
|
|
|
|
<abp-button button-type="Success">Success</abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
<abp-button-group size="Large">
|
|
|
|
|
<abp-button button-type="Primary">Primary</abp-button>
|
|
|
|
|
<abp-button button-type="Secondary">Secondary</abp-button>
|
|
|
|
|
<abp-button button-type="Success">Success</abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
|
|
|
|
|
<abp-button-group direction="Vertical" size="Small">
|
|
|
|
|
<abp-button button-type="Primary">Top</abp-button>
|
|
|
|
|
<abp-button button-type="Warning">Middle</abp-button>
|
|
|
|
|
<abp-button button-type="Danger">Bottom</abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
<abp-button-group>
|
|
|
|
|
<abp-button> Left </abp-button>
|
|
|
|
|
<abp-button> Middle </abp-button>
|
|
|
|
|
<abp-button> Right </abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
|
|
|
|
|
<abp-button-group size="Large">
|
|
|
|
|
<abp-button button-type="Primary"> Primary </abp-button>
|
|
|
|
|
<abp-button button-type="Secondary"> Secondary </abp-button>
|
|
|
|
|
<abp-button button-type="Success"> Success </abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
|
|
|
|
|
<abp-button-group direction="Vertical" size="Small">
|
|
|
|
|
<abp-button button-type="Primary"> Top </abp-button>
|
|
|
|
|
<abp-button button-type="Warning"> Middle </abp-button>
|
|
|
|
|
<abp-button button-type="Danger"> Bottom </abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<abp-button-group direction="Vertical" size="Small">
|
|
|
|
|
<abp-button button-type="Primary">Top</abp-button>
|
|
|
|
|
<abp-button button-type="Warning">Middle</abp-button>
|
|
|
|
|
<abp-button button-type="Danger">Bottom</abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre><code>
|
|
|
|
|
|
|
|
|
|
<abp-button-group>
|
|
|
|
|
<abp-button> Left </abp-button>
|
|
|
|
|
<abp-button> Middle </abp-button>
|
|
|
|
|
<abp-button> Right </abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
|
|
|
|
|
<abp-button-group size="Large">
|
|
|
|
|
<abp-button button-type="Primary"> Primary </abp-button>
|
|
|
|
|
<abp-button button-type="Secondary"> Secondary </abp-button>
|
|
|
|
|
<abp-button button-type="Success"> Success </abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
|
|
|
|
|
<abp-button-group direction="Vertical" size="Small">
|
|
|
|
|
<abp-button button-type="Primary"> Top </abp-button>
|
|
|
|
|
<abp-button button-type="Warning"> Middle </abp-button>
|
|
|
|
|
<abp-button button-type="Danger"> Bottom </abp-button>
|
|
|
|
|
</abp-button-group>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>*@
|