How to set value in a variable of "use variables" using javascript in Klipfolio Dashboard? -
i need set data html component in variable of klipfolio using javascript using plugin multiple selection dropdown box. couldn't find way that.
i tried "set" method , other method, didn't work out me.
the dashboard has function on called "setdashboardprop". function takes following inputs:
- scope: (values: 1 = klip scope, 2 = tab scope, 3 = dashboard scope, 4 = user)
- name
- value
- xid (klip or tab identifier)
- secondaryid (tab identifier) (when scope == 1, tab)
so set tab scope variable named currentmax 10 use following call:
dashboard.setdashboardprop(2,"currentmax",10,dashboard.activetab.id);
check value set using getdashboardprop:
dashboard.getdashboardprop("currentmax",2,dashboard.activetab.id);
i suggest using browser console in developer tools in either chrome or firefox test out these calls before including in klip.
Comments
Post a Comment