Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to implement your own UI components along with custom styling? #338

Open
R-Lek opened this issue Nov 15, 2022 · 0 comments
Open

Comments

@R-Lek
Copy link

R-Lek commented Nov 15, 2022

Hello there,

The documentation mentions that you can use your own custom framework instead of Bootstrap 3/4 or Material:

import { YourFrameworkComponent } from './your-framework.component';
import { YourWidgetComponent } from './your-widget.component';
...
const yourCustomFramework = {
  framework: YourFrameworkComponent,                                // required
  widgets:     { 'your-widget-name': YourWidgetComponent,   ... },  // optional
  stylesheets: [ '//url-to-framework-external-style-sheet', ... ],  // optional
  scripts:     [ '//url-to-framework-external-script',      ... ]   // optional
}

It further states that "The value of the required framework key is an Angular component which will be called to format each widget before it is displayed." However, I have a difficult time figuring out what this Angular component should look like or how to create it.

What I would like to accomplish is using AJSF in an Angular environment along with a set of custom UI components and a custom theme (stylesheets). Would it be possible to create a 'framework' around it along with a framework Angular component as requested above?
If the documentation could be supplemented with some examples that would be for instance a great help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant