public DetailsListSampleFileItem(LineAwesome fileIcon, string fileName, DateTime dateModified, string modifiedBy, double fileSize)
 {
     FileIcon     = fileIcon;
     FileName     = fileName;
     DateModified = dateModified;
     ModifiedBy   = modifiedBy;
     FileSize     = fileSize;
 }
Example #2
0
        public DetailsList(params IDetailsListColumn[] columns)
        {
            if (columns == null)
            {
                throw new ArgumentNullException(nameof(columns));
            }

            if (!columns.Any())
            {
                throw new ArgumentException(nameof(columns));
            }

            _columns        = columns.ToList();
            _componentCache = new ComponentCache <TDetailsListItem>(CreateListItem);
            _listContainer  = Div(_("tss-detailslist").WithRole("grid"));

            _container = Div(_("tss-detailslist-container"), _listContainer);
            _previousColumnSortingKey      = string.Empty;
            _currentLineAwesomeSortingIcon = LineAwesome.ArrowUp;
        }
Example #3
0
 public static HTMLElement I(LineAwesome icon, LineAwesomeWeight size = LineAwesomeWeight.Default, string cssClass = null)
 {
     return(I(_($"{size} {icon} {cssClass}")));
 }
Example #4
0
 public static Icon Icon(LineAwesome icon, LineAwesomeWeight weight = LineAwesomeWeight.Light, TextSize size = TextSize.Medium, string color = null) => new Icon($"{weight} {icon} tss-fontsize-{size.ToString().ToLower()}").Foreground(color ?? "");
 public DetailsListSampleItemWithComponents WithIcon(LineAwesome icon)
 {
     Icon = icon;
     return(this);
 }
Example #6
0
 public PickerSampleItemWithComponents(string name, LineAwesome icon)
 {
     Name  = name;
     _icon = icon;
 }
Example #7
0
 public IconItem(LineAwesome icon, string name)
 {
     name      = ToValidName(name.Substring(3));
     _value    = name + " " + icon.ToString();
     component = Stack().Horizontal().Children(Icon(icon, size: TextSize.Large).MinWidth(36.px()).AlignCenter(), TextBlock($"{name}").Title(icon.ToString()).Wrap().AlignCenter()).PaddingBottom(4.px());
 }