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:

  1. scope: (values: 1 = klip scope, 2 = tab scope, 3 = dashboard scope, 4 = user)
  2. name
  3. value
  4. xid (klip or tab identifier)
  5. 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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -