question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation on creating custom components is lacking

See original GitHub issue

Currently 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:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rjaroscommented, Jul 16, 2022

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

2reactions
rjaroscommented, Jul 13, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing Custom Components | Prismatic Docs
Prismatic allows dev users to write custom API connectors and other components for their integrations. Learn more about creating custom components with ...
Read more >
Creating Custom Components - Docs - Snap Inc.
Custom Components are a type of component within Lens Studio that is created from a script and includes all the resources needed in...
Read more >
[help] Failed to create custom components #292 - GitHub
Essentially, create a custom .svelte component that styles the element the way you need it to. Import that into components.js then export it...
Read more >
How To Create Custom Components in React - DigitalOcean
In this tutorial, you'll learn to create custom components in React. Components are independent pieces of functionality that you can reuse ...
Read more >
15 Creating Custom Components - Oracle Help Center
This chapter describes how to create custom components to use with Oracle WebCenter Content Server. This chapter includes the following sections: Section 15.1, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found