erikvullings / mithril-tree-component Goto Github PK
View Code? Open in Web Editor NEWA tree component for mithril.
Home Page: https://erikvullings.github.io/mithril-tree-component
License: MIT License
A tree component for mithril.
Home Page: https://erikvullings.github.io/mithril-tree-component
License: MIT License
Specs don't allow typescript for our project, any chance you have a compiled non-typescript version?
Currently, we can only use the title/name for display. Allow the user to provide a Component.
Is there any way to add ondblclick event to selected TreeItem via options
?
When an isOpen property is specified, it is used to indicate whether a node is open (i.e. shows its children) or closed. However, this is not always desirable, since it means that different tree components that are attached to the same tree, always have the same open/closed state.
If the isOpen property is not specified, maintain the open/closed state internally.
I.e. when you don't use an item property to store the isOpen state, the parent is displayed as being open, but his child is not shown.
It would be good if we could use async functions or promises in the handlers, e.g. to update a value in a database via a REST call.
It would require, though, that the user issues an m.redraw() call when finished, as mithril will not know when the call is done.
When to stop adding new children to a tree item.
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.