We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you are using a Bucket, and then try to use a render element that contains a Bucket, the prefix and suffix will be rendered twice.
var bucketContent = { _prefix: '<div class="foo">', _suffix: '</div>', stuff: { _theme: 'bucket', _attributes: { id: 'my-bucket' }, /* ... */ } }; fill(bucketContent);
You'll end up with html like this:
<div class="foo"> <div class="foo"> <div id="my-bucket">...</div> </div> </div>
This may be a problem with dg.render() itself and not limited to just the Bucket widget.
The workaround is to use _markup instead of _theme:
_markup
_theme
var bucketContent = { _prefix: '<div class="foo">', _suffix: '</div>', stuff: { _markup: dg.theme('bucket', { _attributes: { id: 'my-bucket' }, /* ... */ }) } }; fill(bucketContent);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you are using a Bucket, and then try to use a render element that contains a Bucket, the prefix and suffix will be rendered twice.
You'll end up with html like this:
This may be a problem with dg.render() itself and not limited to just the Bucket widget.
The workaround is to use
_markup
instead of_theme
:The text was updated successfully, but these errors were encountered: