Documentation on creating custom components is lacking
See original GitHub issueCurrently the documentation on how to create custom components is lacking in my opinion: https://kvision.gitbook.io/kvision-guide/2.-frontend-development-guide/basic-components#extending-kvision-dsl, it only shows how to create a custom DSL function. This is not useful if the custom component needs to have state, because you would need a class to contain that state. I know that the documentation mentions classes/interfaces such as Component
, Widget
and Container
which the KVision components use (https://kvision.gitbook.io/kvision-guide/2.-frontend-development-guide/ui-structure#component), but it doesn’t show how you are supposed to use them if you want to create more complex custom components. Having more documentation on this topic would be nice.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
I’ve added a new chapter to the guide. Any feedback is welcomed. https://kvision.gitbook.io/kvision-guide/2.-frontend-development-guide/custom-components
I have assumed (probably too optimistic) the standard object-oriented design of the library is enough. I did not take into account that nowadays people think about libraries and components in a different way than they used to be 😃 So you are absolutely right because there is no documentation about creating components in an object-oriented way. I’ll try to add a chapter about this.