Hi Pascal,
Thanks for the code . It is working fine but if i add properties like color to add color for button background and other text data it is throwing an error that get aggregation is not a function ..
Can you add some attributes to the existing code and share..
Thanks,
bhaskar.