mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
18 lines
393 B
JavaScript
18 lines
393 B
JavaScript
px.registerViz('markup', function(slice) {
|
|
|
|
function refresh() {
|
|
$('#code').attr('rows', '15')
|
|
$.getJSON(slice.jsonEndpoint(), function(payload) {
|
|
slice.container.html(payload.data.html);
|
|
slice.done();
|
|
})
|
|
.fail(function(xhr) {
|
|
slice.error(xhr.responseText);
|
|
});
|
|
};
|
|
return {
|
|
render: refresh,
|
|
resize: refresh,
|
|
};
|
|
});
|