admin管理员组文章数量:1310169
according to visual poser knowledge base we can add attribute like
vc_map( array( "name" => __("Portfolio Grid", "js_poser"), "base" => "abc-portfolio", "description" => __("Display masonry portfolio grid", "js_poser"), "class" => "abc-portfolio-section", "category" => __("abc Component", "js_poser"), "params" => array( array( "type" => "checkbox", "admin_label" => true, "weight" => 10, "heading" => __( "Make featured", "js_poser" ), "description" => __("description", "js_poser"), "value" => array('key' => 'value' ), "param_name" => "abc_param" ), ) ) );
Here we get a check-box but how can I make this check-box checked initially ?
thanks in advance.
according to visual poser knowledge base we can add attribute like
vc_map( array( "name" => __("Portfolio Grid", "js_poser"), "base" => "abc-portfolio", "description" => __("Display masonry portfolio grid", "js_poser"), "class" => "abc-portfolio-section", "category" => __("abc Component", "js_poser"), "params" => array( array( "type" => "checkbox", "admin_label" => true, "weight" => 10, "heading" => __( "Make featured", "js_poser" ), "description" => __("description", "js_poser"), "value" => array('key' => 'value' ), "param_name" => "abc_param" ), ) ) );
Here we get a check-box but how can I make this check-box checked initially ?
thanks in advance.
Share Improve this question asked Feb 29, 2016 at 11:02 itshimelkaziitshimelkazi 712 silver badges4 bronze badges1 Answer
Reset to default 7Check the Custom checkbox attribute.
Actually, configuration is possible by array key:
'std' => '', // default unchecked
So you can play with this attribute std
with values true/false/'yes'..
and you will see how it changes.
In your case:
"value" => array('key' => 'value' ),
So if 'std'=>'value'
your checkbox will be checked.
本文标签: javascriptHow to make wordpress visual composer attribute check box checked initiallyStack Overflow
版权声明:本文标题:javascript - How to make wordpress visual composer attribute check box checked initially - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741776092a2397034.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论