mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-22 01:35:47 +08:00
Generalized Search
Generalized the search to work with any table with some basic classes and some updated JavaScript, we can now search colors and emojis.
This commit is contained in:
committed by
Patrik Svensson
parent
b1db8a9403
commit
e0947708c9
@@ -30,7 +30,7 @@ namespace Docs.Shortcodes
|
||||
var code = emoji.Code.Replace("U+0000", "U+").Replace("U+000", "U+");
|
||||
var icon = $"&#x{emoji.Code.Replace("U+", string.Empty)};";
|
||||
|
||||
var row = new XElement("tr", new XAttribute("class", "emoji-row"));
|
||||
var row = new XElement("tr", new XAttribute("class", "search-row"));
|
||||
row.Add(new XElement("td", icon));
|
||||
row.Add(new XElement("td", new XElement("code", $":{emoji.Id}:")));
|
||||
row.Add(new XElement("td", new XElement("code", emoji.Name)));
|
||||
|
||||
Reference in New Issue
Block a user