nicolas-t/Chocolat

How to reproduce styling in demo?

CptMeatball opened this issue · 2 comments

I was triggered by the styling in the demo, which has most information in the top bar. Is this custom styling/settings or is there some part of the docs I've failed to find?

Hello,

You can achieve this by modifying the markup with the hook afterMarkup, you'll find an example here :
#65 (comment)
and in the readme :

$('#example').Chocolat({
  afterMarkup: function () {
    this.elems.description.appendTo(this.elems.top)
  }
})

It's a very flexible function and I can help you if you share more details about what you're trying to achieve.

You can also override the default css to make some positioning adjustments.

Ah thanks!