mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3745] Updated properties and doc comments (#4134)
This commit is contained in:
committed by
Eugenio Romano
parent
ebde107f41
commit
b32654b236
@@ -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>();
|
||||
|
||||
|
@@ -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';
|
||||
|
@@ -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(
|
||||
() => {
|
||||
|
Reference in New Issue
Block a user