These are chat archives for canjs/canjs

20th
Apr 2015
largoelks
@largoelks
Apr 20 2015 14:34
When creating and instance of a bitstrap dropdown. Is there a way for me to dynamically set my own custom dropdown.stache and buttonTemplate.stache for the dropdown component?
It's be great if that could be set with the viewModel
Matthew Phillips
@matthewp
Apr 20 2015 17:57
@largoelks looking at the code I don't think so but possibly an enhancement
create an issue on that repository
largoelks
@largoelks
Apr 20 2015 18:03
@matthewp O.K. I think it would be valuable to reuse the behavior with different custom templates for the button and item. Especially since bootstrap allows for a lot of different HTML layouts for dropdown components. Is it an anti-pattern to pass in render functions to a component? Or should templates be baked in?
Matthew Phillips
@matthewp
Apr 20 2015 18:05
I'm not sure how I feel about it
@ccummings @Macrofig worked on that project, what do you guys think?