Пример #1
0
            public void AddSearchResult(ISearchResult <TObject> searchResult)
            {
                var element = searchResult.CreateElement();

                element.AddToClassList("search-result");
                element.style.textOverflow = TextOverflow.Ellipsis;
                //element.style.width = this.style.width;
                element.style.overflow   = Overflow.Hidden;
                element.style.whiteSpace = WhiteSpace.NoWrap;
                element.Value            = searchResult;

                this.scrollView.contentContainer.Add(element);
                element.RegisterCallback <MouseDownEvent>(OnSearchResultSelect);
            }