From 347b2bb5e8b71f9a1069b3011506b75b43e1a5c4 Mon Sep 17 00:00:00 2001 From: Andy Stark <30621568+therealandeeee@users.noreply.github.com> Date: Tue, 20 Mar 2018 14:03:12 +0000 Subject: [PATCH] [ADF-2526] Fixed interpolation marker issue in doc files (#3098) * [ADF-2526] Test commit of a file with escape tags * [ADF-2526] Fixed interpolation marker issue in doc code samples --- docs/content-services/search.component.md | 12 ++++++++++++ docs/core/data-column.component.md | 12 ++++++++++++ docs/core/file-size.pipe.md | 4 ++++ docs/core/mime-type-icon.pipe.md | 4 ++++ docs/core/node-favorite.directive.md | 4 ++++ docs/core/node-name-tooltip.pipe.md | 4 ++++ docs/core/text-highlight.pipe.md | 4 ++++ docs/core/time-ago.pipe.md | 4 ++++ docs/core/translation.service.md | 4 ++++ docs/core/user-initial.pipe.md | 4 ++++ docs/process-services/people-list.component.md | 4 ++++ docs/process-services/people-search.component.md | 4 ++++ .../process-attachment-list.component.md | 4 ++++ docs/process-services/process-list.component.md | 4 ++++ .../task-attachment-list.component.md | 4 ++++ docs/process-services/task-list.component.md | 4 ++++ docs/user-guide/internationalization.md | 16 ++++++++++++++++ docs/user-guide/metadata-indicators.md | 8 ++++++++ docs/user-guide/stencils.md | 4 ++++ 19 files changed, 108 insertions(+) diff --git a/docs/content-services/search.component.md b/docs/content-services/search.component.md index 2ee28cf71d..e8eee9fe2b 100644 --- a/docs/content-services/search.component.md +++ b/docs/content-services/search.component.md @@ -39,6 +39,8 @@ Searches items for supplied search terms. You have to add a template that will be shown when the results are loaded. + + ```html @@ -51,12 +53,16 @@ You have to add a template that will be shown when the results are loaded. ``` + + The results are provided via the [$implicit variable of angular2](https://angular.io/api/common/NgTemplateOutlet) and can be accessed via the sugar sintax 'let-yourChosenName'. As per example above the result will be something like : ![adf-search-control](../docassets/images/search-component-simple-template.png) But you can define even a more complex template : + + ```html ``` + + Which will look like : ![adf-search-control](../docassets/images/search-component-complex-template.png) @@ -106,6 +114,8 @@ Which will look like : You can also attach your input field to the adf-search component via the trigger [searchAutocomplete] Yuo can do this by exporting the adf-search panel instance into a local template variable (here we called it "search"), and binding that variable to the input's searchAutocomplete property. + + ```html @@ -118,6 +128,8 @@ Yuo can do this by exporting the adf-search panel instance into a local template ``` + + In this way it is possible to fetch the results from the word typed into the input text straight into the adf-search component via the custom template variable. ### Custom search configuration diff --git a/docs/core/data-column.component.md b/docs/core/data-column.component.md index 2b7b38cbba..75429263d0 100644 --- a/docs/core/data-column.component.md +++ b/docs/core/data-column.component.md @@ -135,6 +135,8 @@ context.row.getValue('createdByUser.displayName') You may want using **row** api to get raw value access. + + ```html @@ -144,10 +146,14 @@ You may want using **row** api to get raw value access. ``` + + Use **data** api to get values with post-processing, like datetime/icon conversion.\_ In the Example below we will prepend `Hi!` to each file and folder name in the list: + + ```html @@ -156,9 +162,13 @@ In the Example below we will prepend `Hi!` to each file and folder name in the l ``` + + In the Example below we will integrate the [adf-tag-node-list](../content-services/tag-node-list.component.md) component with the document list. + + ```html ``` + + ![Tag component in document List](../docassets/images/document-list-tag-template.png) ### Styling Techniques diff --git a/docs/core/file-size.pipe.md b/docs/core/file-size.pipe.md index 8bca248909..47e4599176 100644 --- a/docs/core/file-size.pipe.md +++ b/docs/core/file-size.pipe.md @@ -8,12 +8,16 @@ Converts a number of bytes to the equivalent in KB, MB, etc. ## Basic Usage + + ```HTML
File Size: {{ sizeInBytes | adfFileSize:"2" }}
``` + + ## Details The pipe chooses the largest unit that is less than the total number of bytes and diff --git a/docs/core/mime-type-icon.pipe.md b/docs/core/mime-type-icon.pipe.md index 811b09c484..05c985be5e 100644 --- a/docs/core/mime-type-icon.pipe.md +++ b/docs/core/mime-type-icon.pipe.md @@ -8,12 +8,16 @@ Retrieves an icon to represent a MIME type. ## Basic Usage + + ```HTML
``` + + ## Details The pipe takes a MIME type as input and returns the URL of an SVG file that diff --git a/docs/core/node-favorite.directive.md b/docs/core/node-favorite.directive.md index 9bd91686a4..e4c991dc11 100644 --- a/docs/core/node-favorite.directive.md +++ b/docs/core/node-favorite.directive.md @@ -51,6 +51,8 @@ export class MyComponent { The `NodeFavoriteDirective` instance can be bound to a template variable through **adfFavorite** reference, which provides a method to help further style the element. + + ```html