0

Basically trying to get this library going, but it's not rendering the template TableView inside the javascript that displays a sidepanel, from the jquery library at http://www.jqueryscript.net/demo/jQuery-CSS3-Powered-Slide-in-Panel-Plugin-slidePanel/

 $.slidePanel.show({
        content: '{{> TableView }}'
    }, {
        direction: direction,
        useCssTransforms3d: false,
        useCssTransforms: false,
        useCssTransitions: false
    });

This just shows the text literally, but I want the sidepanel to render the meteor template.

1 Answer 1

1

You could use Blaze.toHTML(Template.TableView), however there is almost certainly a more meteoric way of doing this.

I'd suggest rendering the template off-screen and using transitions to ease it into and out of view.

Sign up to request clarification or add additional context in comments.

2 Comments

you mean clone the template HTML and insert it into the javascript? I'm attempting to use Blaze.render()
My Suggestion? no, I'm suggesting having the sidebar rendered into the DOM when the main page is initially rendered, just off-screen. Don't clone or re-render it, just move it into view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.