Ejemplo n.º 1
0
 internal CheckFileInfoResponse()
 {
     _wopiHostCapabilities  = WopiConfiguration.WopiHostCapabilities.Clone();
     _wopiHostProperties    = WopiConfiguration.WopiHostProperties.Clone();
     _postMessageProperties = WopiConfiguration.PostMessageProperties.Clone();
     _breadcrumbProperties  = new BreadcrumbProperties();
     _fileProperties        = new FileProperties();
     _fileUrlProperties     = new FileUrlProperties();
     _userMetadata          = new UserMetadata()
     {
         IsEduUser = false
     };
     _userPermissions = new UserPermissions()
     {
         DisablePrint            = false,
         DisableTranslation      = false,
         ReadOnly                = false,
         RestrictedWebViewOnly   = false,
         UserCanAttend           = false,
         UserCanNotWriteRelative = false,
         UserCanPresent          = false,
         UserCanRename           = true,
         UserCanWrite            = true,
         WebEditingDisabled      = false
     };
 }
        public override Task ConfigureAsync(IBreadcrumbProperties builder)
        {
            builder.LeftIcon("oi oi-home");
            builder.Link("Home", string.Empty);

            return(Task.CompletedTask);
        }
        public override Task ConfigureAsync(IBreadcrumbProperties builder)
        {
            var date = Date ?? DateTime.Today;

            builder.Text(date.ToShortDateString());
            builder.RightIcon("oi oi-x", () => NavigationManager.NavigateTo($"{NavigationManager.BaseUri}fetch-data"));

            return(Task.CompletedTask);
        }
        public static IBreadcrumbProperties RightIcon(this IBreadcrumbProperties breadcrumbProperties, string css, Action action)
        {
            if (breadcrumbProperties is BreadcrumbProperties typedBreadcrumbProperties)
            {
                typedBreadcrumbProperties.RightIcon   = css;
                typedBreadcrumbProperties.RightAction = action;
            }

            return(breadcrumbProperties);
        }
        public static IBreadcrumbProperties LeftIcon(this IBreadcrumbProperties breadcrumbProperties, string css)
        {
            if (breadcrumbProperties is BreadcrumbProperties typedBreadcrumbProperties)
            {
                typedBreadcrumbProperties.LeftIcon   = css;
                typedBreadcrumbProperties.LeftAction = null;
            }

            return(breadcrumbProperties);
        }
        public static IBreadcrumbProperties Text(this IBreadcrumbProperties breadcrumbProperties, string title)
        {
            if (breadcrumbProperties is BreadcrumbProperties typedBreadcrumbProperties)
            {
                typedBreadcrumbProperties.Title  = title;
                typedBreadcrumbProperties.Action = null;
                typedBreadcrumbProperties.Url    = null;
            }

            return(breadcrumbProperties);
        }
        public override Task ConfigureAsync(IBreadcrumbProperties builder)
        {
            builder.Link("Fetch data", "fetch-data");

            return(Task.CompletedTask);
        }
Ejemplo n.º 8
0
        public override Task ConfigureAsync(IBreadcrumbProperties builder)
        {
            builder.Link($"Counter {Counter}", "counter");

            return(Task.CompletedTask);
        }