Are there any step by step instructions for getting a Slate slider into Workshop? This is what I have done:
Created a Slate app and added a slider and set the parameters as required - looks ok
In Workshop, I have added an iFrame and selected Slate / iFrame embed - I can see the slider
Added an output parameter (string variable) to the Slate slider in Workshop and called this slider_output
To test, I have created a metric card and am displaying a string and pointing it to slider_output
I get “-” for the metric card so something is not working and I also have a very large canvas around the slider, I don’t know how to reduce this to showing just the slider.
Thanks.
Have you set an event to pass the output parameter (see docs)?
Like this for instance:
And regarding the canvas around the slider, you could add the following CSS styles to your Slate app to make it responsive and have the widget take the whole Canvas (with the widget w_slider_1 at the root of the Slate Canvas):
// Utility Classes
// ===============
.u-posFullScreen {
position : absolute !important;
top : 0 !important;
bottom : 0 !important;
left : 0 !important;
right : 0 !important;
}
.u-fluidSize {
height : auto !important;
width : auto !important;
}
// Style Resets
// ============
body {
min-width: initial;
}
sl-app-canvas {
// Miscellaneous
overflow : hidden !important;
}
//
// Expand the Slate document canvas to take up
// the full screen.
//
sl-app-canvas .canvas-body {
// Position
.u-posFullScreen();
// Box Model
.u-fluidSize();
// Miscellaneous
overflow : hidden !important;
}
//
// Expand the root table widget to take up the
// full screen.
//
#widget-w_slider_1 {
// Position
.u-posFullScreen();
// Box Model
.u-fluidSize();
sl-app-container {
background : none;
border : none;
}
}
Thanks both! Because its an iframe, the Slate edit box is displayed in the top right of the widget in Workshop but apart from that its working as expected.
You can disable the “action” dropdown to show up, by navigating, in edit more of your Slate, top right, settings and “disable Action dropdown in view mode”