mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3514] Added transclusions sections to doc files (#3756)
* [ADF-3514] Added transclusion sections and guide page * [ADF-3514] Updated tables of contents where needed * [ADF-3514] Updated index files
This commit is contained in:
committed by
Eugenio Romano
parent
35e1563fde
commit
2c49de6070
@@ -13,12 +13,10 @@ Simple container for headers, titles, actions and breadcrumbs.
|
||||
## Contents
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
- [Transclusions](#transclusions)
|
||||
- [Class members](#class-members)
|
||||
- [Properties](#properties)
|
||||
- [Details](#details)
|
||||
- [Custom title](#custom-title)
|
||||
- [Divider](#divider)
|
||||
- [Spacer](#spacer)
|
||||
- [Dropdown menu](#dropdown-menu)
|
||||
- [Custom color](#custom-color)
|
||||
- [See also](#see-also)
|
||||
@@ -36,6 +34,39 @@ Simple container for headers, titles, actions and breadcrumbs.
|
||||
</adf-toolbar>
|
||||
```
|
||||
|
||||
### [Transclusions](../user-guide/transclusion.md)
|
||||
|
||||
You can set the title content using an `<adf-toolbar-title>` element (although
|
||||
you can also set a simple textual title with the `title` attribute).
|
||||
All other content in the toolbar is free-form but you can use one or more
|
||||
`<adf-toolbar-divider>` elements between your own elements to add a visual
|
||||
separator. Also, any content following a `<div>` element with the CSS class
|
||||
`adf-toolbar--spacer` will be pushed across to the right-hand side of the
|
||||
toolbar:
|
||||
|
||||
```html
|
||||
<adf-toolbar>
|
||||
<adf-toolbar-title>
|
||||
<adf-breadcrumb ...></adf-breadcrumb>
|
||||
</adf-toolbar-title>
|
||||
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
|
||||
<button></button>
|
||||
<button></button>
|
||||
|
||||
<div class="adf-toolbar--spacer"></div>
|
||||
|
||||
<button></button>
|
||||
</adf-toolbar>
|
||||
```
|
||||
|
||||
For example, the image below shows a toolbar with a
|
||||
[Breadcrumb component](../content-services/breadcrumb.component.md) title, and then some buttons
|
||||
pushed to the right by a spacer:
|
||||
|
||||

|
||||
|
||||
## Class members
|
||||
|
||||
### Properties
|
||||
@@ -47,55 +78,6 @@ Simple container for headers, titles, actions and breadcrumbs.
|
||||
|
||||
## Details
|
||||
|
||||
### Custom title
|
||||
|
||||
You can use any HTML layout or Angular component as the content of the title section by
|
||||
using the `<adf-toolbar-title>` subcomponent instead of the "title" attribute:
|
||||
|
||||
```html
|
||||
<adf-toolbar>
|
||||
<adf-toolbar-title>
|
||||
<adf-breadcrumb ...></adf-breadcrumb>
|
||||
</adf-toolbar-title>
|
||||
...
|
||||
</adf-toolbar>
|
||||
```
|
||||
|
||||

|
||||
|
||||
### Divider
|
||||
|
||||
You can divide groups of elements with a visual separator `<adf-toolbar-divider>`:
|
||||
|
||||
```html
|
||||
<adf-toolbar>
|
||||
<button></button>
|
||||
<button></button>
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
<button></button>
|
||||
</adf-toolbar>
|
||||
```
|
||||
|
||||
### Spacer
|
||||
|
||||
You can split the toolbar into separate sections at the left and right of the screen
|
||||
with the `adf-toolbar--spacer` CSS class. In the following example, the toolbar title
|
||||
element is rendered to the left but all the buttons are pushed to the right side:
|
||||
|
||||
```html
|
||||
<adf-toolbar>
|
||||
<adf-toolbar-title>
|
||||
...
|
||||
<adf-toolbar-title>
|
||||
|
||||
<div class="adf-toolbar--spacer"></div>
|
||||
|
||||
<button></button>
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
<button></button>
|
||||
</adf-toolbar>
|
||||
```
|
||||
|
||||
### Dropdown menu
|
||||
|
||||
The following example shows how to create a dropdown menu. The code is based
|
||||
|
Reference in New Issue
Block a user