-
Notifications
You must be signed in to change notification settings - Fork 177
Feature request: Framework support Clarity #244
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
Comments
I'm currently using the bootstrap framework 4 module because clarity is based on bootstrap. But they have plans to change it in the future see: |
Hi @RobArbor, I am interested to add clarity to my Angular project. However could you share with me how you can use Clarity seamlessly in your project? Did you just import the JS files and css files to the angular-cli json and import { ClarityModule } from '@clr/angular'? Is that all required to allow it run correctly along side with the existing BS 4 module of Json schema form? Thank you so much! |
Just follow the instructions of https://vmware.github.io/clarity/documentation/v0.12/get-started. Note that the latest version of clarity is Angular 6 and this project isn't yet compatible. I used the branch of Catull: https://github.com/catull/ngx-json-schema |
I see thank you so much @RobArbor and @catull, really apprecitae your advices! Now I am also considering ngx-formly, https://github.com/formly-js/ngx-formly as a solution and then add a converter from json-schema to ngx formly defined schema. |
You might want to try this version https://github.com/hamzahamidi/Angular6-json-schema-form import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { Bootstrap4FrameworkModule } from 'angular6-json-schema-form';
import { AppComponent } from './app.component';
@NgModule({
declarations: [ AppComponent ],
imports: [
BrowserModule
Bootstrap4FrameworkModule
],
providers: [],
bootstrap: [ AppComponent ]
})
export class AppModule { } And you use the component like the following: <json-schema-form
loadExternalAssets="true"
[schema]="schema"
framework="bootstrap-4"
(onSubmit)="submit($event)">
</json-schema-form> |
Issue type
I'm submitting a (check one):
[ ] Bug report
[x] Feature request
[ ] Regression (something that used to work, but stopped working in a newer version)
[ ] Support request
[ ] Documentation issue or request
Prerequisites
Before posting, make sure you do the following (check all):
[x] Confirm you are using the latest versions of all necessary packages (or if not, explain why not)
[x] Search GitHub for a similar issue or PR
[x] If submitting a Support request, also search [Stack Overflow][stack-overflow] for similar issues
Note: Please cross-post GitHub support requests to [Stack Overflow][stack-overflow], and include a link in your GitHub issue to your Stack Overflow question. We do currently respond to support requests on GitHub, but we eventually expect to stop, and will then refer all support questions exclusively to Stack Overflow.
Feature description
Support for the clarity framework.
https://vmware.github.io/clarity/
The text was updated successfully, but these errors were encountered: