本文整理汇总了TypeScript中entcore.ui.breakpoints类的典型用法代码示例。如果您正苦于以下问题:TypeScript ui.breakpoints类的具体用法?TypeScript ui.breakpoints怎么用?TypeScript ui.breakpoints使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ui.breakpoints类的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();
};
示例2: function
$(window).on('resize', function () {
if(ui.breakpoints.checkMaxWidth("tablette")){
element.removeClass('height-' + cellSizes[scope.h]);
}
else {
element.addClass('height-' + cellSizes[scope.h]);
}
});
示例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');
}
//.........这里部分代码省略.........