Hi Nikhil,,
I understand the question. No, I have not seen an implementation.
There is an inherent problem in your issue. to sum it up, pixel perfect.
When you create a drag&drop designer, the user of that, by default, will
expect his design to be pixel perfect on every screen it's represented.
That's not possible. So you need at least a preview that shows 2 or even
better 3 different representations of the result.
I would take a step back, and provide them with something that allows them
to edit all the metadata of a form easily. By meta-data, I mean the data
that is unique for each field.
I would start off with:
interface FieldMetaData {
name: string;
type: string;
properyName: string;
label: string;
validationRules: Validations[];
descriptions: string;
orderInForm: number;
placeholder: string;
labelTitle: string;
inputTitle: string;
defaultValue: any | Function;
}
Those are a good start, but I'm pretty sure the list is incomplete. I would
keep styling out of this. the `name` property gives you the opportunity to
add unique id's to the label and input itself when you do that, you can use
normal CSS to style the forms even more.
keep it basic, otherwise, this feature will end up in a maintenance
nightmare.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.