首页 > 解决方案 > Gutenberg ServerSideRender 回调

问题描述

我正在尝试在服务器端渲染上触发回调函数:

edit: function( props ) {
    return [
        el( ServerSideRender, {
            block: 'meetongo/meetup-slider',
            attributes: props.attributes,
            onChange: function( props ) {
                console.log('hello world');
            }
        } ),
    ];
},

此方法用于PlayList块中,在我的情况下未触发。

标签: wordpresswordpress-gutenberg

解决方案


推荐阅读