htmlelements / smart-blazor Goto Github PK
View Code? Open in Web Editor NEWBlazor UI Components & Examples
Home Page: https://www.htmlelements.com/blazor/
Blazor UI Components & Examples
Home Page: https://www.htmlelements.com/blazor/
Hello.
Is it possible to set up accordion item auto resize? Not there are no options to do this - for example, I want to get "First item" wided fully on the screen. But now it just on half of the screen and no way to resize it.
Hey there,
Perhaps it's my lack of understanding of how to access the data elements of a treeview, but it appears I have an occasional hiccup when trying to access the "id" property of a Tree item when a given element is selected.
I can provide source code for this, but in essence, imagine the following code:
<Tree @ref="_treeMenu"
OnChange="TriggerLoadFileContents"
DataSource="@TreeItems">
@code {
private List<Dictionary<string, object>> TreeItems { get; set; } = new();
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
//each item in the tree has an id, label, sort Dictionary entry
TreeItems = ProjectContentTreeFactory.GenerateTreeDataFromProject(CurrentProject);
}
private async Task TriggerLoadFileContents(Event arg)
{
if (arg["Detail"] is TreeChangeEventDetail eventData)
{
var itemId = eventData.Item.id.ToString();
if (!string.IsNullOrEmpty(itemId))
{
var currentItem= MyDataSource.FindItemById(itemId);
if (currentItem!= null)
{
TriggerLoadFileContents(currentItem);
}
}
}
await Task.CompletedTask;
}
}
The issue is that in 9 out of 10 tree elements, when I fetch it back as a TreeChangeEventDetail item and inspect the eventData.Item.id
property, it IS the Id
property I set on the TreeItems. Only 1 in 10 do I see what appears to be a nonsensically-generated key which looks something like this each time: "Smart0HMNK6T2AMEFEItemP0_1_1LItemLabelWithNoSpaces"
Am I missing something? It appears that in 9 of 10 cases, the Id dictionary entry I pass is being returned back inside the TreeChangeEventDetail
, but in the 10th case, the Id field appears to contain a random string starting in the word 'Smart' and ending in the label I provided (just sans spaces).
Perhaps there is some other way I should be accessing the TreeChangeEventDetail data. I'm unsure.
Any help would be most appreciated.
Cheers
The complete component is in the current state non functional - which could be at least pointed out!
Have you a working example with more then showing 10 tasks or are you really selling a non functional library for a huge amount of money?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.