PopulateFileSymbols() public static méthode

public static PopulateFileSymbols ( jQueryObject container, List items, bool displayOriginalName = false, string urlPrefix = null ) : void
container jQueryObject
items List
displayOriginalName bool
urlPrefix string
Résultat void
Exemple #1
0
        private void Populate()
        {
            bool displayOriginalName = !options.OriginalNameProperty.IsTrimmedEmpty();

            if (entity == null)
            {
                UploadHelper.PopulateFileSymbols(fileSymbols, null, displayOriginalName);
            }
            else
            {
                UploadHelper.PopulateFileSymbols(fileSymbols, new List <UploadedFile> {
                    entity
                }, displayOriginalName);
            }
        }
Exemple #2
0
 protected virtual void Populate()
 {
     UploadHelper.PopulateFileSymbols(fileSymbols, entities, true, options.UrlPrefix);
     fileSymbols.Children().Each((i, e) =>
     {
         var x = i;
         J("<a class='delete'></a>").AppendTo(J(e).Children(".filename"))
         .Click(ev =>
         {
             ev.PreventDefault();
             this.entities.RemoveAt(x);
             Populate();
         });
     });
 }
Exemple #3
0
        protected virtual void Populate()
        {
            bool displayOriginalName = options.DisplayFileName || !options.OriginalNameProperty.IsTrimmedEmpty();

            if (entity == null)
            {
                UploadHelper.PopulateFileSymbols(fileSymbols, null, displayOriginalName, options.UrlPrefix);
            }
            else
            {
                UploadHelper.PopulateFileSymbols(fileSymbols, new List <UploadedFile> {
                    entity
                }, displayOriginalName, options.UrlPrefix);
            }
        }
Exemple #4
0
 protected virtual void Populate()
 {
     UploadHelper.PopulateFileSymbols(fileSymbols, entities, true, options.UrlPrefix);
 }