Creating an anchor programmatically?
03 February 2016 09:34
03 February 2016 10:22
03 February 2016 12:52
Currently, I decided to temporarily use internal API (approach is not changes-aware, I know):
var m_obj_utils_i = b4w.require("__obj_util");
var m_anchors_i = b4w.require("__anchors");
var m_cons_i = b4w.require("__constraints");
var info = m_obj_utils_i.create_object("info", "EMPTY", "");
info.anchor = {
type: "ANNOTATION",
detect_visibility: false,
element_id: null,
max_width: 250
};
info.render = m_obj_utils_i.create_render("EMPTY");
m_anchors_i.append(info);
03 February 2016 14:28