[ADF-3745] Updated properties and doc comments (#4134)

This commit is contained in:
Andy Stark
2019-01-11 23:33:29 +00:00
committed by Eugenio Romano
parent ebde107f41
commit b32654b236
18 changed files with 242 additions and 155 deletions

View File

@@ -31,21 +31,27 @@ import { FormService } from './../../../services/form.service';
})
export class ContentWidgetComponent implements OnChanges {
/** The content id to show. */
@Input()
id: string;
/** Toggles showing document content. */
@Input()
showDocumentContent: boolean = true;
/** Emitted when the content is clicked. */
@Output()
contentClick = new EventEmitter();
/** Emitted when the thumbnail has loaded. */
@Output()
thumbnailLoaded: EventEmitter<any> = new EventEmitter<any>();
/** Emitted when the content has loaded. */
@Output()
contentLoaded: EventEmitter<any> = new EventEmitter<any>();
/** Emitted when an error occurs. */
@Output()
error: EventEmitter<any> = new EventEmitter<any>();

View File

@@ -39,6 +39,7 @@ export class IconComponent {
return this._value;
}
/** Icon value, which can be either a ligature name or a custom icon in the format `[namespace]:[name]`. */
@Input()
set value(value: string) {
this._value = value || 'settings';

View File

@@ -74,6 +74,11 @@ export class TranslationService {
}
}
/**
* Loads a translation file.
* @param lang Language code for the language to load
* @param fallback Language code to fall back to if the first one was unavailable
*/
loadTranslation(lang: string, fallback?: string) {
this.translate.getTranslation(lang).subscribe(
() => {