jaumard / ngx-dashboard

Dashboard library for angular 4 and more
https://jaumard.github.io/ngx-dashboard/demo/demoDist/index.html
MIT License
71 stars 31 forks source link

change widgetsize on click function #28

Closed waleed-sarwar closed 7 years ago

waleed-sarwar commented 7 years ago

is it possible to change widget size on a click function i want to implement the tiles/list view and in list view i need to resize the height of widget any suggestions ???

jaumard commented 7 years ago

You have the setSize method to resize the widget, just call it whenever you want it should work

waleed-sarwar commented 7 years ago

i try out this one but on first time its not work after that it fine. scenario when i click on list view button i update the widget sizes and call this._onResize()

waleed-sarwar commented 7 years ago

can you please tell me how to access setSize method ... i use the default widget not a custom one

jaumard commented 7 years ago

Check this one https://github.com/jaumard/ngx-dashboard/issues/20 you can access setSize directly from your widget

waleed-sarwar commented 7 years ago

yes it works fine by using size function not setSize , i dont know why, maybe i have old version of repo

thanks