How to use the @alfresco/js-api.SiteEntry function in @alfresco/js-api

To help you get started, we’ve selected a few @alfresco/js-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Alfresco / alfresco-ng2-components / demo-shell / src / app / components / content-node-selector / content-node-selector.component.ts View on Github external
onClickAddSite() {
        const newSiteEntry: SiteEntry = new SiteEntry({ entry: { title: this.customSideTitle, guid: this.customSideGuid } });
        this.customSites.list.entries.push(newSiteEntry);
        this.customSideGuid = '';
        this.customSideTitle = '';
    }
github Alfresco / alfresco-ng2-components / lib / content-services / src / lib / site-dropdown / sites-dropdown.component.ts View on Github external
this.sitesService.getSites(extendedOptions).subscribe((sitePaging: SitePaging) => {

                if (!this.siteList) {
                    this.siteList = this.relations === Relations.Members ? this.filteredResultsByMember(sitePaging) : sitePaging;

                    if (!this.hideMyFiles) {
                        const siteEntry = new SiteEntry({
                            entry: {
                                id: '-my-',
                                guid: '-my-',
                                title: 'DROPDOWN.MY_FILES_OPTION'
                            }
                        });

                        this.siteList.list.entries.unshift(siteEntry);

                        if (!this.value) {
                            this.value = '-my-';
                        }
                    }

                } else {
                    const siteList: SitePaging = this.relations === Relations.Members ? this.filteredResultsByMember(sitePaging) : sitePaging;
github Alfresco / alfresco-ng2-components / lib / content-services / site-dropdown / sites-dropdown.component.ts View on Github external
this.sitesService.getSites(extendedOptions).subscribe((sitePaging: SitePaging) => {

                if (!this.siteList) {
                    this.siteList = this.relations === Relations.Members ? this.filteredResultsByMember(sitePaging) : sitePaging;

                    if (!this.hideMyFiles) {
                        const siteEntry = new SiteEntry({
                            entry: {
                                id: '-my-',
                                guid: '-my-',
                                title: 'DROPDOWN.MY_FILES_OPTION'
                            }
                        });

                        this.siteList.list.entries.unshift(siteEntry);

                        if (!this.value) {
                            this.value = '-my-';
                        }
                    }

                } else {
                    const siteList: SitePaging = this.relations === Relations.Members ? this.filteredResultsByMember(sitePaging) : sitePaging;