How can i achieve dictionary type data access in Chromium embedded CEF1 -
i achieve dictionary data pattern can accessed java script. this:
pseudo code:
records: { rec = //get record rec["name"] rec["address"] } i trying achieve cefv8accessor, not getting near solution.
kindly provide few links reference, see documentation less chromium embedded.
if understand correctly, you're trying create js "dictionary" object cef using c++. if so, here's code snippet that:
cefrefptr<cefv8value> getdictionary(__in const wstring& sname, __in const wstring& saddress) { cefrefptr<cefv8value> objectjs = cefv8value::createobject(null); objectjs->setvalue(l"name", sname, v8_property_attribute_none); objectjs->setvalue(l"address", saddress, v8_property_attribute_none); return objectjs; } the cefv8accessor can used matter, that's if want specific control on set & methods, create new type of object.
in case should create class inherits cefv8accessor, implement set , methods (in similar way appears in code above), , pass createobject method. return value instance of new type of object.
i suggest browse through this link, if haven't already.
Comments
Post a Comment