当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ui.breakpoints.checkMaxWidth方法代码示例

本文整理汇总了TypeScript中entcore.ui.breakpoints.checkMaxWidth方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ui.breakpoints.checkMaxWidth方法的具体用法?TypeScript ui.breakpoints.checkMaxWidth怎么用?TypeScript ui.breakpoints.checkMaxWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在entcore.ui.breakpoints的用法示例。


在下文中一共展示了ui.breakpoints.checkMaxWidth方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: function

	$scope.confirmRemoveFavorite = async function() {
		$scope.lightbox.show = false;
		template.close('lightbox');
		$scope.display.loading = true;
		$scope.search.maxLength = 50;
		var form = $scope.display.creatingFavorite;
		if (form)
			$scope.preHideFavoriteForm();
		if (ui.breakpoints.checkMaxWidth("wideScreen")) {
			$scope.display.loadingmobile = true;
		}
		await $scope.currentDeletingFavorite.delete();
		$scope.favorites.splice($scope.favorites.indexOf($scope.currentDeletingFavorite), 1);
		$scope.currentDeletingFavorite = null;
		if (!ui.breakpoints.checkMaxWidth("wideScreen")) {
			await $scope.selectFirstFavorite();
		}
		$scope.display.loading = false;
		$scope.display.loadingmobile = false;
		if (form) {
			if (ui.breakpoints.checkMaxWidth("wideScreen")) {
				$scope.currentFavorite = null;
			}
			$scope.display.searchmobile = false;
			$scope.hideFavoriteForm();
		}
		$scope.$apply();
	};
开发者ID:entcore,项目名称:entcore,代码行数:28,代码来源:directory.ts

示例2: function

			$(window).on('resize', function () {
				if(ui.breakpoints.checkMaxWidth("tablette")){
			        element.removeClass('height-' + cellSizes[scope.h]);
			    }
			    else {
			        element.addClass('height-' + cellSizes[scope.h]);
			    }
			});
开发者ID:web-education,项目名称:pages,代码行数:8,代码来源:grid-cell.ts

示例3: function

    '$scope', '$timeout', '$compile', '$sanitize', 'model', 'route', function ($scope, $timeout, $compile, $sanitize, model, route) {
        $scope.state = {
            selectAll: false,
            filterUnread: false,
            searching: false,
            current: undefined,
            newItem: undefined,
            draftError: false,
            dragFolder: undefined,
            emptyMessage: lang.translate('folder.empty'),
            searchFailed: false,
            draftSaveDate: null,
            mailLimit: 5000,
            recipientLimit: ui.breakpoints.checkMaxWidth("fatMobile") ? 5 : 10
        };
        $scope.defaultAvatar = "img/illustrations/unknown-avatar.svg?thumbnail=100x100";
        $scope.conversation = Conversation.instance;
        $scope.ccCciShow = false;

        route({
            readMail: async function (params) {
                Conversation.instance.folders.openFolder('inbox');
                template.open('page', 'folders');
                $scope.readMail(new Mail(params.mailId));
                await Conversation.instance.sync();
                await Conversation.instance.folders.draft.countTotal();
                $scope.constructNewItem();
                $scope.$apply();
            },
            writeMail: async function (params) {
                Conversation.instance.folders.openFolder('inbox');
                await Conversation.instance.sync();
                template.open('page', 'folders');
                template.open('main', 'mail-actions/write-mail');
                $scope.constructNewItem();

                if (_.isString(params.id)) {
                    if (!params.type || params.type === 'User') {
                        let user = new User(params.id);
                        await user.findData();
                        $scope.addUser(user);
                    }
                    else if (params.type === 'Group') {
                        let group = new User(params.id);
                        await group.findGroupData();
                        $scope.addUser(group);
                    }
                    else if (params.type === 'Favorite') {
                        await $scope.state.newItem.addFavorite(params.id);
                    }
                } else if (params.id !== undefined) {
                    for (let i = 0; i < params.id.length; i++) {
                        let user = new User(params.id[i]);
                        await user.findData();
                        $scope.addUser(user);
                    }
                }
                $scope.$apply();
            },
            inbox: async () => {
                template.open('page', 'folders');
                await Conversation.instance.folders.openFolder('inbox');
                await Conversation.instance.sync();
                await Conversation.instance.folders.draft.countTotal();
                $scope.constructNewItem()
                $scope.$apply();
            }
        });

        $scope.lang = lang;
        $scope.notify = notify;
        $scope.folders = Conversation.instance.folders;
        $scope.userFolders = Conversation.instance.userFolders;
        $scope.users = { list: Conversation.instance.users, search: '', found: [], foundCC: [] };
        template.open('main', 'folders-templates/inbox');
        template.open('toaster', 'folders-templates/toaster');
        $scope.formatFileType = Document.role;
        $scope.sending = false;
        /**
         * WORKSPACE
         */

        $scope.copyProps = {
            i18: {
                title: "conversation.copy.title",
                actionTitle: "conversation.copy.action",
                actionProcessing: "conversation.copy.processing",
                actionFinished: "conversation.copy.finished",
                info: "conversation.copy.info"
            },
            sources: [],
            onCancel() {
                $scope.copyLightbox.show = false;
            },
            onSubmitSuccess(dest, count: number) {
                if (count > 1) {
                    notify.info('conversation.notify.copyToWorkspace.plural');
                } else {
                    notify.info('conversation.notify.copyToWorkspace');
                }
//.........这里部分代码省略.........
开发者ID:entcore,项目名称:entcore,代码行数:101,代码来源:controller.ts


注:本文中的entcore.ui.breakpoints.checkMaxWidth方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。