angular-form-builder icon indicating copy to clipboard operation
angular-form-builder copied to clipboard

I want to know number of fbcomponents in builder

Open anmolsharma25 opened this issue 10 years ago • 8 comments

How can I know number of fbcomponents in builder.

anmolsharma25 avatar Oct 28 '14 15:10 anmolsharma25

I would count them.

darrencauthon avatar Oct 28 '14 19:10 darrencauthon

how ??

anmolsharma25 avatar Oct 28 '14 20:10 anmolsharma25

Programmin'

darrencauthon avatar Oct 28 '14 22:10 darrencauthon

In the controller https://github.com/kelp404/angular-form-builder/blob/master/example/demo.coffee#L73 section,

You have a var name $builder

Using $builder.components to list down all the components.

here you go, the length you want.

hueitan avatar Oct 29 '14 01:10 hueitan

is there any way to add some html element to popover template dynamically.

anmolsharma25 avatar Oct 29 '14 02:10 anmolsharma25

The popover template is created by your own https://github.com/kelp404/angular-form-builder/blob/master/example/demo.coffee#L48

means you can change it

hueitan avatar Oct 29 '14 02:10 hueitan

i want to add some html dynamically to popover template in angular-form builder .js

anmolsharma25 avatar Oct 29 '14 02:10 anmolsharma25

custom by yourself.

for example: you can give the specific id for the popover. you can use this id $('#id') to dynamically modify your DOM.

hueitan avatar Oct 29 '14 02:10 hueitan