-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hector Romero
committed
Feb 2, 2017
1 parent
d6e634d
commit cd75bc9
Showing
6 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<div class="container-fluid"> | ||
<div class="page-header"> | ||
<a class="btn btn-default pull-right" target="_blank" | ||
href="https://github.com/tochoromero/aurelia-bootstrap/tree/master/doc/src/global-defaults"> | ||
<i class="fa fa-edit"></i> Improve documentation</a> | ||
<h1>Global Defaults</h1> | ||
</div> | ||
|
||
<p>Many of the Aurelia Bootstrap components have sensible defaults. You can always change the default value on a per component | ||
basis. But sometimes, you want to change the default for <strong>all</strong> the components. For those cases you want to use | ||
Global | ||
Defaults.</p> | ||
|
||
<p>When initializing the Aurelia Bootstrap plugin in your <code>main.js</code>, you can obtain the configuration object and change the desired | ||
defaults, | ||
this example contains all the available defaults with their respective value:</p> | ||
|
||
<pre><code class="language-js" au-syntax>export function configure(aurelia) { | ||
aurelia.use | ||
.standardConfiguration() | ||
.developmentLogging() | ||
.plugin('aurelia-bootstrap', config => { | ||
config.options.accordionCloseOthers: true, | ||
config.options.accordionGroupPanelClass: 'panel-default', | ||
config.options.btnLoadingText: 'Loading...', | ||
config.options.dropdownAutoClose: 'always', | ||
config.options.paginationBoundaryLinks: false, | ||
config.options.paginationDirectionLinks: true, | ||
config.options.paginationFirstText: 'First', | ||
config.options.paginationHideSinglePage: true, | ||
config.options.paginationLastText: 'Last', | ||
config.options.paginationNextText: '>', | ||
config.options.paginationPreviousText: '<', | ||
config.options.popoverPosition: 'top', | ||
config.options.popoverTrigger: 'mouseover', | ||
config.options.tabsetType: 'tabs', | ||
config.options.tabsetVertical: false, | ||
config.options.tooltipPosition: 'top', | ||
config.options.tooltipTrigger: 'mouseover' | ||
}); | ||
|
||
aurelia.start().then(() => aurelia.setRoot()); | ||
}</code></pre> | ||
|
||
<p>Please note that <strong>you don't need to add the whole list</strong>, you only add what you need to change.</p> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class GlobalDefaults { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
//import {computedFrom} from 'aurelia-framework'; | ||
|
||
export class Introduction { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
</li> | ||
</ul> | ||
</li> | ||
<li><a href="#/defaults">Global Defaults</a></li> | ||
</ul> | ||
</nav> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters